Abstract class for value shaders that modify other value shaders.
Constructors
ValueShaderModifier
#Construct this modifier shader.
Parameters:
| basisShader (ValueShader) | Value shader to modify. |
Fields
Methods
Dilate
Apply a dilation (or scaling) transformation to this shader.
Flip
Repeat and flip a value within a [0, limit] domain.
Flip
Repeat and flip a value within a [0, limit] domain.
Parameters:
| angle (Angle) | Rotation angle (counter-clockwise). |
Returns: Rotated shader.
Transform
Apply a custom transformation to this shader.
Parameters:
| transform (Transform2D) | Transformation. |
Returns: Transformed shader.
Translate
Apply a translation transformation to this shader.
ValueAt
Evaluate this shader at a specific ray location.
Parameters:
| ray (Ray) | Coincident ray. |
| stack (IObjectStack) | Object stack context. |