Table of Contents

Method SetShaderUniform

Namespace
Anvil.API
Assembly
NWN.Anvil.dll

SetShaderUniform(ShaderUniform, float)

Sets a global shader uniform for this player.
These uniforms are not used by the base game and are reserved for module-specific scripting.
You need to add custom shaders that will make use of them.
In multiplayer, these need to be reapplied when a player rejoins.

public void SetShaderUniform(ShaderUniform uniform, float value)

Parameters

uniform ShaderUniform

The uniform to set.

value float

The value to set for the uniform.

SetShaderUniform(ShaderUniform, int)

Sets a global shader uniform for this player.
These uniforms are not used by the base game and are reserved for module-specific scripting.
You need to add custom shaders that will make use of them.
In multiplayer, these need to be reapplied when a player rejoins.

public void SetShaderUniform(ShaderUniform uniform, int value)

Parameters

uniform ShaderUniform

The uniform to set.

value int

The value to set for the uniform.

SetShaderUniform(ShaderUniform, Vector4)

Sets a global shader uniform for this player.
These uniforms are not used by the base game and are reserved for module-specific scripting.
You need to add custom shaders that will make use of them.
In multiplayer, these need to be reapplied when a player rejoins.

public void SetShaderUniform(ShaderUniform uniform, Vector4 value)

Parameters

uniform ShaderUniform

The uniform to set.

value Vector4

The value to set for the uniform.