SetMaterialShaderUniformVec4(object, string, string, float, float, float, float)

From NWN Lexicon
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 a vec4 material shader uniform override.

void SetMaterialShaderUniformVec4(
    object oObject,
    string sMaterial,
    string sParam,
    float fValue1,
    float fValue2 = 0.0,
    float fValue3 = 0.0,
    float fValue4 = 0.0
);

Parameters

oObject
The object to set the shader override upon.
sMaterial
Needs to be a material on that object.
sParam
Needs to be a valid shader parameter already defined on the material.
fValue1
You can specify a single float value to set just a float, instead of a vec4.
fValue2
The second float value in a vec4
fValue3
The third float value in a vec4
fValue4
The fourthfloat value in a vec4


Description

Sets a vec4 material shader uniform override.

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.74.8170 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: SetMaterialShaderUniformInt(), ResetMaterialShaderUniforms()

 author: Shadguy