Shader: "wrapped mirror map"

"wrapped mirror map"

ClassReflectance
Synopsis Approximation of mirror reflecting materials using ray tracing, supporting reflection with the degree of reflectance determined by red component of an image map.
Arguments

"ambient factor" Type: LtFloat
Default:0.1
Range:[ 0, inf ]
Hint:[ 0, 1 ]
"diffuse factor" Type: LtFloat
Default:0.1
Range:[ 0, inf ]
Hint:[ 0, 1 ]
"specular factor" Type: LtFloat
Default:0.8
Range:[ 0, inf ]
Hint:[ 0, 1 ]
"mirror factor" Type: LtFloat
Default:0.8
Range:[ 0, inf ]
Hint:[ 0, 1 ]
"roughness" Type: LtFloat
Default:0.0625
Range:[ 0.0001, inf ]
Hint:[ 0.001, 1 ]
"image" Type: LtImage
Default:NULL
Range:-
Hint:-
"file name" Type: LtString
Default:NULL
Range:-
Hint:-
"scale" Type: LtFloat
Default:1.0
Range:[ 1e-006, inf ]
Hint:[ 0.01, 1000 ]
"aspect ratio" Type: LtFloat
Default:1.0
Range:[ 1e-006, inf ]
Hint:[ 0.01, 1000 ]
"width" Type: LtFloat
Default:1.0
Range:[ 1e-006, inf ]
Hint:
"height" Type: LtFloat
Default:1.0
Range:[ 1e-006, inf ]
Hint:
"softness" Type: LtFloat
Default:1.0
Range:[ 0, inf ]
Hint:-
Locationlishclas
Description A reflectance model that supports secondary mirrored views through ray tracing, with degree of reflectance determined by the red component of a texture image. The image is specified either by an LtImage pointer type as argument "image", or via the name of a file ( "file name").

Reflectance coefficients are provided as arguments which allow specification of the amount of ambient light ( "ambient factor"), diffuse light ( "diffuse factor") and specular light ( "specular factor") components, and the contribution made by light reflected in the mirror direction ( "mirror factor"). The sharpness of the specular reflection highlights can be controlled by means of argument "roughness". The reflection is made sharper with small values for the roughness, such as 0.1 or less. Larger values, such as 1.0, decrease the specular fall-off.

This model is approprate for representing mirror-like surface finishes in which the degree of reflectance is variable across the surface.

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).

The "aspect ratio" parameter allows the aspect ratio (the width divided by the height) of the texture to be altered. Note that by default LightWorks fits the image into a single square of (s,t) texture space (or the number of squares of texture space implied by the value given for the "scale" parameter). If your original image file is not square, therefore, you will need to set the "aspect ratio" paremeter as appropriate.

New! The "width" and "height" parameters are provided as an alternative to "scale" and "aspect ratio" which may be more suitable for many applications. Generally speaking you would want to expose either the "width" and { "height" method or the "scale" and "aspect ratio" method, but not both (it may make sense in some cases to expose the "scale" parameter in addition to "width" and "height", but certainly not { "aspect ratio" as well).

The parameter "softness" controls the degree of blurring on the image texture.

Previous page alphabetically (wrappedmasktransparency)
Next page alphabetically (wrappedoakfloor)
Index


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