SFML.Net
ShaderSetParameter Method (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).
Namespace: SFML.Graphics
Assembly: sfmlnet-graphics-2 (in sfmlnet-graphics-2.dll) Version: 2.2.0.0 (2.2.0)

public void SetParameter( string name, float x, float y, float z, float w )
Public Sub SetParameter ( name As String, x As Single, y As Single, z As Single, w As Single )
public: void SetParameter( String^ name, float x, float y, float z, float w )
member SetParameter : name : string * x : float32 * y : float32 * z : float32 * w : float32 -> unit
Parameters
- name
- Type: SystemString
Name of the parameter in the shader - x
- Type: SystemSingle
First component of the value to assign - y
- Type: SystemSingle
Second component of the value to assign - z
- Type: SystemSingle
Third component of the value to assign - w
- Type: SystemSingle
Fourth component of the value to assign
