setParameter
Sets a boolean parameter.
Parameters
Parameter name as defined in the material
Boolean value
Sets a float parameter.
Parameters
Parameter name as defined in the material
Float value
Sets an integer parameter.
Parameters
Parameter name as defined in the material
Integer value
Sets an unsigned integer parameter.
Parameters
Parameter name as defined in the material
Unsigned integer value
Sets a 2-component boolean vector parameter.
Sets a 2-component float vector parameter.
Sets a 2-component integer vector parameter.
Sets a 2-component unsigned integer vector parameter.
Sets a 3-component boolean vector parameter.
Sets a 3-component float vector parameter.
Sets a 3-component integer vector parameter.
Sets a 3-component unsigned integer vector parameter.
Sets a 4-component boolean vector parameter.
Sets a 4-component float vector parameter.
Sets a 4-component integer vector parameter.
Sets a 4-component unsigned integer vector parameter.
Sets a texture parameter with sampler configuration.
Note: Depth textures cannot be sampled with linear filtering unless comparison mode is set to COMPARE_TO_TEXTURE.
Parameters
Parameter name as defined in the material
Texture to bind, or null
Sampler configuration (filtering, wrapping, comparison function)
Sets a parameter from a boolean array.
Parameters
Parameter name as defined in the material
Array element type (BOOL, BOOL2, BOOL3, or BOOL4)
Source array, flattened
Index into v to start copying from
Number of elements to copy
Sets a parameter from an integer array.
Parameters
Parameter name as defined in the material
Array element type (INT, INT2, INT3, or INT4)
Source array, flattened
Index into v to start copying from
Number of elements to copy
Sets a parameter from an unsigned integer array.
Parameters
Parameter name as defined in the material
Array element type (UINT, UINT2, UINT3, or UINT4)
Source array of bit patterns, flattened
Index into v to start copying from
Number of elements to copy
Sets a parameter from a float array.
Parameters
Parameter name as defined in the material
Array element type (FLOAT, FLOAT2, FLOAT3, FLOAT4, MAT3, or MAT4)
Source array, flattened (matrices column-major)
Index into v to start copying from
Number of elements to copy
Sets an RGB color parameter, converted to linear from type's space.
Parameters
Parameter name as defined in the material
Whether color is in linear or sRGB space
Red channel 0, 1
Green channel 0, 1
Blue channel 0, 1
Sets an RGBA color parameter, converted to linear from type's space.
Parameters
Parameter name as defined in the material
Whether color is in linear or sRGB space, and whether alpha is premultiplied
Red channel 0, 1
Green channel 0, 1
Blue channel 0, 1
Alpha channel 0, 1