Shader: "wrapped square"

"wrapped square"

ClassTransparency
Synopsis A square region of transparency.
Arguments

"s min" Type: LtFloat
Default:0.0
Range:[ -inf, inf ]
Hint:[ 0, 1 ]
"s max" Type: LtFloat
Default:1.0
Range:[ -inf, inf ]
Hint:[ 0, 1 ]
"t min" Type: LtFloat
Default:0.0
Range:[ -inf, inf ]
Hint:[ 0, 1 ]
"t max" Type: LtFloat
Default:1.0
Range:[ -inf, inf ]
Hint:[ 0, 1 ]
"s fuzz" Type: LtFloat
Default:0.1
Range:[ 0, 1 ]
Hint:-
"t fuzz" Type: LtFloat
Default:0.1
Range:[ 0, 1 ]
Hint:-
"inside coverage" Type: LtFloat
Default:1.0
Range:[ 0, 1 ]
Hint:-
"outside coverage" Type: LtFloat
Default:0.0
Range:[ 0, 1 ]
Hint:-
"scale" Type: LtFloat
Default:1.0
Range:[ 1e-006, inf ]
Hint:[ 0.01, 1000 ]
Locationlishlite
Description A transparency shader that provides a single square aligned with the texture space. The square extends as follows:

         "s min" <= s <= "s max"
         "t min" <= t <= "t max"

There is a soft edge to the square, expressed as a 'fuzz' factor which encodes a value in the range 0 to 1. Fuzz can be specified separately for the s and t dimensions. The alpha value inside and outside the square are given by "inside coverage" and "outside coverage" respectively.

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 "s fuzz" and "t fuzz" parameters. 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 parameters will have no effect if you have not licenced Advanced Rendering.

The "scale" parameter defines how many times the image texture fits into each unit of the (s,t) texture-space coordinate system (in fact to be precise this parameter defines the number of times which the height of the image will fit into one unit of the t direction of texture-space).

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


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