MetaSL Shader Descriptions

Texture Shaders

Texture_coordinate_2d_distort
Modifies the input texture coordinates based on a distortion texture. The texture coordinates used to look up the distortion are independent of the input texture coordinates. The red and green components of the color retrieved from the distortion texture are scaled by a specified distortion amount and added to the x- and y-values, respectively, of the input texture coordinates.
Texture_coordinate_2d_scale
Scales the input texture coordinates by specified amounts in the u- and v-directions.
Texture_coordinate_2d_offset
Moves the input texture coordinates by specified amounts in the u- and v-directions.
Texture_coordinate_2d_parallax
Modifies the input texture coordinates based on parallax, a change in angular position of two stationary points caused when the viewer moves. The height input parameter is used in the computation. Usually the height input parameter is attached to the output of a texture lookup that is supplied with a height map texture in which white means "higher" and black means "lower". A grayscale value of 0.5 is the neutral height and means no modification. The amount input parameter scales the amount of perturbation of the input texture coordinates.
Texture_coordinate_2d_rotate
Rotates the input texture coordinates by a specified angle about the z-axis at the origin of the texture space.
Texture_lookup_1d
Performs a lookup in a one-dimensional texture. This means that the texture is one pixel in height and n pixels wide.
Texture_lookup_2d
Performs a texture lookup in a two-dimensional texture.
Texture_lookup_2d_soft_cube
Maps a two-dimensional texture on a three-dimensional object using a cubic projection. To avoid sudden changes of texture, the parameter "projection_softness" creates a soft transition between the mapped sides. The transition areas can be inspected using "View Overlap".
Texture_lookup_3d
Performs a texture lookup in a three-dimensional texture. Three-dimensional textures can be stored in the .dds file format, for example.
Texture_lookup_cube
Performs a texture lookup in a cube map texture that is stored in .dds format. A meaningful input for "texture_uvw" would be a reflection direction, for example.