SetShaderUniformInt(object, int, int)

From NWN Lexicon
Revision as of 07:39, 18 March 2023 by Shadguy (talk | contribs) (consistency edits)
Jump to navigationJump to search
Nwnee logo.jpg Note: This article documents Neverwinter Nights: Enhanced Edition new content or changes/updates/fixes to 1.69 functions. These are all listed under the category and patches pages.

Sets the global shader uniform for the player to the specified integer.

void SetShaderUniformInt(
    object oPlayer,
    int nShader,
    int nValue
);


Parameters

oPlayer
The player to set the shader override upon.
nShader
A SHADER_UNIFORM_* constant.
nValue
The integer value to pass into the uniform.


Description

Sets the global shader uniform for the player to the specified integer. 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

Information icon.png This section of the article is a stub. You can help the NWN Lexicon by expanding it.


Version

This function was added in 1.86.8193.35 of NWN:EE.


Example

Information icon.png This article is in need of examples. You can help the NWN Lexicon by showing how to use this code effectively.


See Also

functions: SetMaterialShaderUniformVec4(), ResetMaterialShaderUniforms(), SetShaderUniformFloat(), SetShaderUniformVec()

 author: Shadguy