Shader.SetParameter Method (String, Single, Single, Single)

SFML.Net

ShaderSetParameter Method (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).

Namespace: SFML.Graphics
Assembly: sfmlnet-graphics-2 (in sfmlnet-graphics-2.dll) Version: 2.2.0.0 (2.2.0)
Syntax
public void SetParameter(
	string name,
	float x,
	float y,
	float z
)
Public Sub SetParameter ( 
	name As String,
	x As Single,
	y As Single,
	z As Single
)
public:
void SetParameter(
	String^ name, 
	float x, 
	float y, 
	float z
)
member SetParameter : 
        name : string * 
        x : float32 * 
        y : float32 * 
        z : 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
See Also