Shader.setParameter
- void setParameter(string name, float x)
- void setParameter(string name, float x, float y)
- void setParameter(string name, float x, float y, float z)
- void setParameter(string name, float x, float y, float z, float w)
- void setParameter(string name, Vector2f vector)
- void setParameter(string name, Vector3f vector)
- void setParameter(string name, Color color)
- void setParameter(string name, Transform transform)
- void setParameter(string name, const(Texture) texture)
- void setParameter(string name, CurrentTextureType )
- void opIndexAssign(Color color, string 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.