mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-01-19 20:24:49 +00:00
ies bugfixes
This commit is contained in:
parent
1cb5ed6884
commit
0b7fd2f0b3
|
|
@ -118,6 +118,7 @@ singleton GFXStateBlockData( AL_ConvexLightState )
|
|||
samplerStates[3] = SamplerClampPoint; // colorBuffer
|
||||
samplerStates[4] = SamplerClampPoint; // matInfoBuffer
|
||||
samplerStates[5] = SamplerClampLinear; // Cookie Map
|
||||
samplerStates[6] = SamplerClampLinear; // Cookie Map
|
||||
|
||||
cullDefined = true;
|
||||
cullMode = GFXCullCW;
|
||||
|
|
@ -142,6 +143,7 @@ singleton shaderData( AL_PointLightShader )
|
|||
samplerNames[3] = "$colorBuffer";
|
||||
samplerNames[4] = "$matInfoBuffer";
|
||||
samplerNames[5] = "$cookieMap";
|
||||
samplerNames[6] = "$iesProfile";
|
||||
|
||||
pixVersion = 3.0;
|
||||
};
|
||||
|
|
@ -156,7 +158,7 @@ singleton CustomMaterial( AL_PointLightMaterial )
|
|||
sampler["cookieMap"] = "$dynamiclightmask";
|
||||
sampler["colorBuffer"] = "#color";
|
||||
sampler["matInfoBuffer"] = "#matinfo";
|
||||
|
||||
sampler["iesProfile"] = "$photometricmask";
|
||||
target = "AL_FormatToken";
|
||||
|
||||
pixVersion = 3.0;
|
||||
|
|
@ -177,6 +179,7 @@ singleton shaderData( AL_SpotLightShader )
|
|||
samplerNames[3] = "$colorBuffer";
|
||||
samplerNames[4] = "$matInfoBuffer";
|
||||
samplerNames[5] = "$cookieMap";
|
||||
samplerNames[6] = "$iesProfile";
|
||||
|
||||
pixVersion = 3.0;
|
||||
};
|
||||
|
|
@ -191,7 +194,7 @@ singleton CustomMaterial( AL_SpotLightMaterial )
|
|||
sampler["cookieMap"] = "$dynamiclightmask";
|
||||
sampler["colorBuffer"] = "#color";
|
||||
sampler["matInfoBuffer"] = "#matinfo";
|
||||
|
||||
sampler["iesProfile"] = "$photometricmask";
|
||||
target = "AL_FormatToken";
|
||||
|
||||
pixVersion = 3.0;
|
||||
|
|
|
|||
|
|
@ -120,6 +120,7 @@ uniform sampler2D iesProfile;
|
|||
uniform vec4 rtParams0;
|
||||
|
||||
uniform vec3 lightPosition;
|
||||
uniform vec3 lightDirection;
|
||||
uniform vec4 lightColor;
|
||||
uniform float lightBrightness;
|
||||
uniform float lightRange;
|
||||
|
|
|
|||
Loading…
Reference in a new issue