Shader.SetParameter Method (String, Texture)

SFML.Net

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

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,
	Texture texture
)
Public Sub SetParameter ( 
	name As String,
	texture As Texture
)
public:
void SetParameter(
	String^ name, 
	Texture^ texture
)
member SetParameter : 
        name : string * 
        texture : Texture -> unit 

Parameters

name
Type: SystemString
Name of the texture in the shader
texture
Type: SFML.GraphicsTexture
Texture to assign
See Also