Raytracing Shader
The RAYTRACING_SHADER implementation.
Properties
The albedo map enabled uniform property.
The ambient occlusion map enabled uniform property.
The current number of lights added to the shader.
The emission map enabled uniform property.
The maximum bounces uniform property.
The metalness map enabled uniform property.
The normal map enabled uniform property.
The reflections enabled uniform property.
The reflectivity uniform property.
The roughness map enabled uniform property.
The shadows enabled uniform property.
Functions
Adds a directional light to the shader.
Adds a directional light to the shader using individual float parameters for position and target.
Adds a light to the shader using individual float parameters for position and target.
Adds a light to the shader.
Adds a point light to the shader.
Adds a point light to the shader using individual float parameters for position.
Adds a spot light to the shader.
Adds a spot light to the shader using individual float parameters for position and target.
Gets the location of a shader attribute variable by name.
Gets the location of a shader uniform variable at its default name.
Gets the location of a shader uniform variable by name.
Gets the location of a shader uniform variable at the given index.
Checks if a shader has a specific attribute variable.
Removes a value for a shader uniform variable.
Removes a value for a shader uniform variable by name.
Sets the location of a shader uniform variable to its default name.
Sets the locations of multiple shader uniform variables to their default names.
Sets the location of a shader uniform variable at the given index.
Sets the location of a shader uniform variable by name.
Sets the location of a shader uniform variable.
Sets the locations of multiple shader uniform variables by name.
Sets a 2D Vector (Pair
Sets a 3D Vector (Triple
Sets an unsigned integer value for a shader uniform variable.
Sets a value for a shader uniform variable. The type of the value is inferred at runtime. Supported types are: Boolean, Float, Double, Int, UInt, Pair
Sets a boolean value for a shader uniform variable.
Sets a double value for a shader uniform variable. Performs conversion to float.
Sets a float value for a shader uniform variable.
Sets a float array value for a shader uniform variable.
Sets an integer value for a shader uniform variable.
Sets an int array value for a shader uniform variable.
Sets a 4D Vector (Quadruple
Sets a color value for a shader uniform variable.
Sets a matrix value for a shader uniform variable.
Sets a texture value for a shader uniform variable.
Sets a 2D Vector (Pair
Sets a 3D Vector (Triple
Sets an unsigned integer value for a shader uniform variable by name.
Sets a value for a shader uniform variable by name. The type of the value is inferred at runtime. Supported types are: Boolean, Float, Double, Int, UInt, Pair
Sets a boolean value for a shader uniform variable by name.
Sets a float value for a shader uniform variable by name.
Sets a float array value for a shader uniform variable by name.
Sets an integer value for a shader uniform variable by name.
Sets an int array value for a shader uniform variable by name.
Sets a 4D Vector (Quadruple
Sets a color value for a shader uniform variable by name.
Sets a matrix value for a shader uniform variable by name.
Sets a texture value for a shader uniform variable by name.
Sets a value for a shader uniform variable.
Sets a value for a shader uniform variable by name.