Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Section
Column
width50%

The Corona Select Shader is a shader that lets you use multiple texture maps or shaders into a single material and then choose which one of them to use in the actual rendering. To select a specific texture map, click the checkbox next to that item's number.

See also: Corona Select Material

UI Text Box
typetip

A common use for this shader is to have different variations for the same texture, e.g., to switch between different wood or concrete textures, etc.


Column
width5%

 

Column
width45%

ImageImage Added

 

Shader properties

...

Section
Column
width50%

Texture count – This value specifies the number of texture maps or shaders that you wish to select between.

Current index – These are the different methods to calculate the Normal bump.

Batch load textures – This option allows loading multiple texture files at once. The number of texture maps loaded will be the Texture count number as well. The textures are always loaded as Corona Bitmaps.

Active texture – The list will show all connected texture maps and allows selecting one of them.

UI Text Box
typeinfo

Currently, the maximum number of texture maps inside a Corona Select Shader is 99 (numbered from 1 to 99).

Column
width5%

 

Column
width45%

Image Added

 

...

 

Examples

...

Section

Controlling Scene Environment

 

The Corona Select Shader is used to quickly switch between 3 different HDR images. 


Column
width20%
 
Column
width60%
Corona Select Shader Textures
Image slider
Image slider
Panel
titleActive texture = Environment Map 1

 Image Added

Active texture = 3
Panel
titleActive texture = 2

 

Panel
title
Environment Map 2

Image Added

Panel
titleEnvironment Map 3

Image Added

UI Expand
titleClick here to see the material setup

Image Added

Column
width20%

 

 

...

 

Controlling Textures

 

In the following example, the Corona Select shader has been used to change the screen texture using a Corona Light Material with the "Emit light" option turned off.

Before after
afterLabelTexture B
beforeLabelTexture A
Panel

Image Added

Panel

Image Added

Section
Column
width10%

 

Column
width70%
UI Expand
titleClick here to see the material setup

Image Added

Column
width10%