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