Shader.setParameter

Change a texture parameter of the shader.

It is important to note that the texture parameter must remain alive as long as the shader uses it - no copoy is made internally.

To use the texture of the object being draw, which cannot be known in advance, you can pass the special value Shader.CurrentTexture.

Parameters

name
Type: 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)

texture
Type: const(Texture)

Texture to assign

Meta