shader: "wrapped textured brick"

"wrapped textured brick"

ShaderColour

"wrapped textured brick"( "scale" LtFloat 1.0
"brick width" LtFloat 1.0
"brick height" LtFloat 0.5
"mortar size" LtFloat 0.1
"brick colour 1" LtColour (0.5, 0.1, 0.0)
"brick colour 2" LtColour (0.7, 0.2, 0.0)
"mortar colour" LtColour (0.3, 0.3, 0.3)
"rough scale" LtFloat 1.0
"rough amplitude" LtFloat 1.0
"offset" LtFloat 0.5
"fuzz" LtFloat 0.5
)
Synopsis A wrapped texture to textured brick pattern.
Locationlishlite
Description A wrapped colour source texture giving a sophisticated brick pattern. Each brick has a base colour which is randomly assigned from the RGB colour range specified by parameters "brick colour 1" and "brick colour 2". The bricks are textured by applying to them a coherent variation in colour around the base colour. The colour of the mortar may be specified by argument "mortar colour". The width and height of each brick are specified by the arguments "brick width" and "brick height" respectively, and the size of the mortar between the bricks (which is uniform between rows and columns of bricks) is specified by argument "mortar size".

There is a rough edge where the bricks meet the mortar, the characteristics of which can be controlled through parameters "rough scale" and "rough amplitude". The former determines the complexity of the roughness along each brick; values less than 1.0 produce a rougher appearance, and values greater than 1.0 a smoother appearance. The latter parameter determines the magnitude of the roughness, with values less than 1.0 corresponding to small variations, and values greater than 1.0 large variations.

An overall scaling factor is provided as argument "scale"; increasing this value will make the bricks appear larger.

It is possible to specify the offset between alternate rows of bricks using the "offset" parameter. The default value is 0.5, meaning that bricks in each row begin half a brick's length over from their neighbours above. Values of 0.0 or 1.0 will result in no overlap between bricks, creating `columns' of bricks.

This shader will automatically perform analytic anti-aliasing if you have licenced the Advanced Rendering product, or standard anti-aliasing otherwise. In the analytically antialiased version of the shader the degree of edges blurring can be controlled by the "fuzz" parameter. The parameter range is 0.0 to 1.0. 0.0 means no fuzz---edges are razor sharp. 1.0 gives maximal blurring---the blurred area width is equal to the half of the square size. The "fuzz" parementer will have no effect if you have not licenced Advanced Rendering.

Previous page alphabetically (wrappedsstripe)
Next page alphabetically (wrappedtreadplate)
Index


Copyright © 1990-2004, 2005 LightWork Design Limited. All rights reserved