vecSkill41

vecSkill45

General purpose float4 vectors that contain the content of entity skill41 .. skill44 and skill45 .. skill48.

Type

float4

Remarks:

Use the floatv() function for setting entity and material skills to a float value in lite-C; alternatively you can prevent a float->var conversion by casting a float value to a pointer, f.i. (void*).

Example:

my.skill41 = floatv(1.5); // lite-C: pass a floating point value to skill41
float4 vecskill41; // shader code: define the vector
...
float fValue = vecSkill41.x; // fValue now contains 1.5

See also:

MATERIAL, shaders, effect parameters

► latest version online