SFML.Net
ShaderSetParameter Method |

Name | Description | |
---|---|---|
![]() |
SetParameter(String, Color) |
Change a color parameter of the shader
"name" is the name of the variable to change in the shader.
The corresponding parameter in the shader must be a 4x1 vector
(vec4 GLSL type).
|
![]() |
SetParameter(String, ShaderCurrentTextureType) |
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
sf::Shader::CurrentTexture.
The corresponding parameter in the shader must be a 2D texture
(sampler2D GLSL type).
|
![]() |
SetParameter(String, Texture) |
Change a texture parameter of the shader
"name" is the name of the variable to change in the shader.
The corresponding parameter in the shader must be a 2D texture
(sampler2D GLSL type).
It is important to note that \a texture must remain alive as long
as the shader uses it, no copy 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.
|
![]() |
SetParameter(String, Transform) |
Change a matrix parameter of the shader
"name" is the name of the variable to change in the shader.
The corresponding parameter in the shader must be a 4x4 matrix
(mat4 GLSL type).
|
![]() |
SetParameter(String, Vector2f) |
Change a 2-components vector parameter of the shader
"name" is the name of the variable to change in the shader.
The corresponding parameter in the shader must be a 2x1 vector
(vec2 GLSL type).
|
![]() |
SetParameter(String, Single) |
Change a float parameter of the shader
"name" is the name of the variable to change in the shader.
The corresponding parameter in the shader must be a float
(float GLSL type).
|
![]() |
SetParameter(String, Single, Single) |
Change a 2-components vector parameter of the shader
"name" is the name of the variable to change in the shader.
The corresponding parameter in the shader must be a 2x1 vector
(vec2 GLSL type).
|
![]() |
SetParameter(String, Single, Single, Single) |
Change a 3-components vector parameter of the shader
"name" is the name of the variable to change in the shader.
The corresponding parameter in the shader must be a 3x1 vector
(vec3 GLSL type).
|
![]() |
SetParameter(String, Single, Single, Single, Single) |
Change a 4-components vector parameter of the shader
"name" is the name of the variable to change in the shader.
The corresponding parameter in the shader must be a 4x1 vector
(vec4 GLSL type).
|
