Shader.opIndexAssign
- void opIndexAssign(float x, const(char)[] name)
- void opIndexAssign(const(Vec2) vector, const(char)[] name)
- void opIndexAssign(const(Vec3) vector, const(char)[] name)
- void opIndexAssign(const(Vec4) vector, const(char)[] name)
- void opIndexAssign(int x, const(char)[] name)
- void opIndexAssign(const(Ivec2) vector, const(char)[] name)
- void opIndexAssign(const(Ivec3) vector, const(char)[] name)
- void opIndexAssign(const(Ivec4) vector, const(char)[] name)
- void opIndexAssign(bool x, const(char)[] name)
- void opIndexAssign(const(Bvec2) vector, const(char)[] name)
- void opIndexAssign(const(Bvec3) vector, const(char)[] name)
- void opIndexAssign(const(Bvec4) vector, const(char)[] name)
- void opIndexAssign(const(Mat3) matrix, const(char)[] name)
- void opIndexAssign(const(Mat4) matrix, const(char)[] name)
- void opIndexAssign(const(Texture) texture, const(char)[] name)
- void opIndexAssign(CurrentTextureType , const(char)[] name)
- void opIndexAssign(const(float)[] scalars, const(char)[] name)
- void opIndexAssign(const(Vec2)[] vectors, const(char)[] name)
- void opIndexAssign(const(Vec3)[] vectors, const(char)[] name)
- void opIndexAssign(const(Vec4)[] vectors, const(char)[] name)
- void opIndexAssign(const(Mat3)[] matrices, const(char)[] name)
- void opIndexAssign(const(Mat4)[] matrices, const(char)[] name)
- void opIndexAssign(Color color, const(char)[] name)
class Shader
deprecated
void
opIndexAssign
- void opIndexAssign(Transform transform, const(char)[] name)
- void setParameter(const(char)[] name, Color color)
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.