Shader.setParameter
- void setParameter(const(char)[] name, float x)
- void setParameter(const(char)[] name, float x, float y)
- void setParameter(const(char)[] name, float x, float y, float z)
- void setParameter(const(char)[] name, float x, float y, float z, float w)
- void setParameter(const(char)[] name, Vector2f vector)
- void setParameter(const(char)[] name, Vector3f vector)
- void setParameter(const(char)[] name, Color color)
class Shader
deprecated
void
setParameter
- void setParameter(const(char)[] name, Transform transform)
- void setParameter(const(char)[] name, const(Texture) texture)
- void setParameter(const(char)[] name, CurrentTextureType currentTexture)
- void opIndexAssign(Color color, const(char)[] name)
dsfml graphics shader Shader
constructorsdestructorsenumsfunctionsstatic functionsstatic variablesstructsvariables
Change a color vector parameter of the shader.
It is important to note that the components of the color are normalized before being passed to the shader. Therefore, they are converted from range [0 .. 255] to range [0 .. 1]. For example, a Color(255, 125, 0, 255) will be transformed to a vec4(1.0, 0.5, 0.0, 1.0) in the shader.