Shader.setParameter

Change a texture parameter of the shader.

This overload maps a shader texture variable to the texture of the object being drawn, which cannot be known in advance. The second argument must be Shader.CurrentTexture.

Parameters

name const(char)[]

The name of the variable to change in the shader. The corresponding parameter in the shader must be a 2D texture (sampler2D GLSL type)

currentTexture CurrentTextureType

Dummy variable to denote the texture of the object

Meta