SFML.Net
ShaderSetParameter Method (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).
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, ShaderCurrentTextureType current )
Public Sub SetParameter ( name As String, current As ShaderCurrentTextureType )
public: void SetParameter( String^ name, ShaderCurrentTextureType^ current )
member SetParameter : name : string * current : ShaderCurrentTextureType -> unit
Parameters
- name
- Type: SystemString
Name of the texture in the shader - current
- Type: SFML.GraphicsShaderCurrentTextureType
Always pass the spacial value Shader.CurrentTexture
