Method SetShaderUniform
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
uniformShaderUniformThe uniform to set.
valuefloatThe 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
uniformShaderUniformThe uniform to set.
valueintThe 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
uniformShaderUniformThe uniform to set.
valueVector4The value to set for the uniform.