Conversion Shaders
- Conversion_bool_to_int
- Converts a boolean value to an integer. The integer will be zero if the boolean is false and one if the boolean value is true.
- Conversion_color_to_float
- Converts a color to a float value. The resulting float is the average of the input's red, green and blue component values.
- Conversion_color_to_floats
- Converts a Color to four float values, each representing the value of one of the input's four component values.
- Conversion_color_to_float3
- Converts a Color value to a float3 value with the x component equal to the red input, y component equal to the green input, and z component equal to the blue input. The alpha component is dropped.
- Conversion_int_to_bool
- Converts an integer to a boolean value which is false if the input is 0 and true otherwise.
- Conversion_integer_to_float
- Converts an integer to a float value.
- Conversion_float_to_color
- Converts a float to a color whose alpha value is 1.0 and whose red, green and blue components each equal the input value.
- Conversion_float_to_int
- Converts a float value to an integer value which is the floor of the input value.
- Conversion_floats_to_color
- Takes four float values as input and merges each into the components of the resulting color.
- Conversion_floats_to_float2
- Converts 2 float values into a float2 value.
- Conversion_floats_to_float3
- Takes three float values and merges them into a float3 with each component equal to one of the input values.
- Conversion_floats_to_float4
- Takes four float values and merges them into a float4 with each component equal to one of the input values.
- Conversion_float2_to_floats
- Splits a float2 into separate float output variables.
- Conversion_float3_to_color
- Converts a float3 to a Color output variable with the x component corresponding to the red component, the y component corresponding to the green component and the z component corresponding to the blue component. The alpha component is set to constant 1.0.
- Conversion_float3_to_floats
- Splits a float3 into separate float output variables.
- Conversion_float4_to_floats
- Splits a float3 into separate float output variables.