shader: "wrapped filtered image"

"wrapped filtered image"

ShaderColour

"wrapped filtered image"( "file name" LtString ""
"image" LtGenericPtr NULL
"scale" LtFloat 1.0
"aspect ratio" LtFloat 1.0
"softness" LtFloat 1.0
"filter colour" LtColour (1.0, 1.0, 1.0)
)
Synopsis A wrapped texture to provide image colour mapping with additional colour filtering.
Locationlishslte
Description A wrapped texture that provides image mapping, with additional colour filtering. The name of the file containing the image data is provided as a string to parameter "file name". The file must contain image data in a format for which an appropriate image driver is currently installed.

Image colour is modulated by the filter colour provided by argument "filter colour".

Alternatively a pointer to a valid LtImage data structure may be given via parameter "image". If the value NULL is given then the image will be extracted from the file represented by "file name", otherwise the "image" parameter takes precedence. Note that the shader does not maintain a copy of the LtImage specified in this way, so it is the responsibility of the developer to ensure that this image data remains valid for as long as the shader references it.

\begin{SevenOneFeature} 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). \end{SevenOneFeature}

\begin{SevenOneFeature} 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. \end{SevenOneFeature}

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

Previous page alphabetically (wrappeddimple)
Next page alphabetically (wrappedgridcolour)
Index


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