SetShaderUniformVec(object, int, float, float, float, float)
From NWN Lexicon
Jump to navigationJump to search
Sets the global shader uniform for the player to the specified vec4.
void SetShaderUniformVec(
object oPlayer,
int nShader,
float fX,
float fY,
float fZ,
float fW
);
Parameters
- oPlayer
- The player to set the shader override upon.
- nShader
- A SHADER_UNIFORM_* constant.
- fX
- The float X value of a Vec4 to pass into the uniform.
- fY
- The float Y value of a Vec4 to pass into the uniform.
- fZ
- The float Z value of a Vec4 to pass into the uniform.
- fW
- The float W value of a Vec4 to pass into the uniform.
Description
Sets the global shader uniform for the player to the specified vec4.
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.
Remarks
For some additional notes see the nwn.wiki.
Version
This function was added in 1.87.8193.35 of NWN:EE.
This function was updated in 1.89.8193.37 of NWN:EE. Fixed SetShaderUniformVec()'s 4th float parameter clobbering the 3rd float parameter when saving as gff.
Example
See Also
| functions: | SetMaterialShaderUniformVec4(), ResetMaterialShaderUniforms(), SetShaderUniformFloat(), SetShaderUniformInt() |
author: Shadguy