|
@@ -43,10 +43,10 @@ singleton GFXStateBlockData( AL_VectorLightState )
|
|
|
|
|
|
samplersDefined = true;
|
|
samplersDefined = true;
|
|
samplerStates[0] = SamplerClampPoint; // G-buffer
|
|
samplerStates[0] = SamplerClampPoint; // G-buffer
|
|
- mSamplerNames[0] = "deferredBuffer";
|
|
|
|
samplerStates[1] = SamplerClampPoint; // Shadow Map (Do not change this to linear, as all cards can not filter equally.)
|
|
samplerStates[1] = SamplerClampPoint; // Shadow Map (Do not change this to linear, as all cards can not filter equally.)
|
|
- mSamplerNames[1] = "shadowMap";
|
|
|
|
- samplerStates[2] = SamplerWrapPoint; // Random Direction Map
|
|
|
|
|
|
+ samplerStates[3] = SamplerWrapPoint; // gTapRotationTex Random Direction Map
|
|
|
|
+ samplerStates[4] = SamplerClampPoint; // colorBuffer
|
|
|
|
+ samplerStates[5] = SamplerClampPoint; // matInfoBuffer
|
|
|
|
|
|
cullDefined = true;
|
|
cullDefined = true;
|
|
cullMode = GFXCullNone;
|
|
cullMode = GFXCullNone;
|
|
@@ -68,9 +68,8 @@ singleton shaderData( AL_VectorLightShader )
|
|
samplerNames[0] = "$deferredBuffer";
|
|
samplerNames[0] = "$deferredBuffer";
|
|
samplerNames[1] = "$shadowMap";
|
|
samplerNames[1] = "$shadowMap";
|
|
samplerNames[2] = "$gTapRotationTex";
|
|
samplerNames[2] = "$gTapRotationTex";
|
|
- samplerNames[3] = "$lightBuffer";
|
|
|
|
- samplerNames[4] = "$colorBuffer";
|
|
|
|
- samplerNames[5] = "$matInfoBuffer";
|
|
|
|
|
|
+ samplerNames[3] = "$colorBuffer";
|
|
|
|
+ samplerNames[4] = "$matInfoBuffer";
|
|
|
|
|
|
pixVersion = 3.0;
|
|
pixVersion = 3.0;
|
|
};
|
|
};
|
|
@@ -82,7 +81,6 @@ singleton CustomMaterial( AL_VectorLightMaterial )
|
|
|
|
|
|
sampler["deferredBuffer"] = "#deferred";
|
|
sampler["deferredBuffer"] = "#deferred";
|
|
sampler["shadowMap"] = "$dynamiclight";
|
|
sampler["shadowMap"] = "$dynamiclight";
|
|
- sampler["lightBuffer"] = "#specularLighting";
|
|
|
|
sampler["colorBuffer"] = "#color";
|
|
sampler["colorBuffer"] = "#color";
|
|
sampler["matInfoBuffer"] = "#matinfo";
|
|
sampler["matInfoBuffer"] = "#matinfo";
|
|
|
|
|
|
@@ -115,11 +113,11 @@ singleton GFXStateBlockData( AL_ConvexLightState )
|
|
|
|
|
|
samplersDefined = true;
|
|
samplersDefined = true;
|
|
samplerStates[0] = SamplerClampPoint; // G-buffer
|
|
samplerStates[0] = SamplerClampPoint; // G-buffer
|
|
- mSamplerNames[0] = "deferredBuffer";
|
|
|
|
samplerStates[1] = SamplerClampPoint; // Shadow Map (Do not use linear, these are perspective projections)
|
|
samplerStates[1] = SamplerClampPoint; // Shadow Map (Do not use linear, these are perspective projections)
|
|
- mSamplerNames[1] = "shadowMap";
|
|
|
|
- samplerStates[3] = SamplerClampLinear; // Cookie Map
|
|
|
|
- samplerStates[4] = SamplerWrapPoint; // Random Direction Map
|
|
|
|
|
|
+ samplerStates[2] = SamplerWrapPoint; // gTapRotationTex Random Direction Map
|
|
|
|
+ samplerStates[3] = SamplerClampPoint; // colorBuffer
|
|
|
|
+ samplerStates[4] = SamplerClampPoint; // matInfoBuffer
|
|
|
|
+ samplerStates[5] = SamplerClampLinear; // Cookie Map
|
|
|
|
|
|
cullDefined = true;
|
|
cullDefined = true;
|
|
cullMode = GFXCullCW;
|
|
cullMode = GFXCullCW;
|
|
@@ -140,11 +138,10 @@ singleton shaderData( AL_PointLightShader )
|
|
|
|
|
|
samplerNames[0] = "$deferredBuffer";
|
|
samplerNames[0] = "$deferredBuffer";
|
|
samplerNames[1] = "$shadowMap";
|
|
samplerNames[1] = "$shadowMap";
|
|
- samplerNames[2] = "$cookieMap";
|
|
|
|
- samplerNames[3] = "$gTapRotationTex";
|
|
|
|
- samplerNames[4] = "$lightBuffer";
|
|
|
|
- samplerNames[5] = "$colorBuffer";
|
|
|
|
- samplerNames[6] = "$matInfoBuffer";
|
|
|
|
|
|
+ samplerNames[2] = "$gTapRotationTex";
|
|
|
|
+ samplerNames[3] = "$colorBuffer";
|
|
|
|
+ samplerNames[4] = "$matInfoBuffer";
|
|
|
|
+ samplerNames[5] = "$cookieMap";
|
|
|
|
|
|
pixVersion = 3.0;
|
|
pixVersion = 3.0;
|
|
};
|
|
};
|
|
@@ -157,7 +154,6 @@ singleton CustomMaterial( AL_PointLightMaterial )
|
|
sampler["deferredBuffer"] = "#deferred";
|
|
sampler["deferredBuffer"] = "#deferred";
|
|
sampler["shadowMap"] = "$dynamiclight";
|
|
sampler["shadowMap"] = "$dynamiclight";
|
|
sampler["cookieMap"] = "$dynamiclightmask";
|
|
sampler["cookieMap"] = "$dynamiclightmask";
|
|
- sampler["lightBuffer"] = "#specularLighting";
|
|
|
|
sampler["colorBuffer"] = "#color";
|
|
sampler["colorBuffer"] = "#color";
|
|
sampler["matInfoBuffer"] = "#matinfo";
|
|
sampler["matInfoBuffer"] = "#matinfo";
|
|
|
|
|
|
@@ -177,11 +173,10 @@ singleton shaderData( AL_SpotLightShader )
|
|
|
|
|
|
samplerNames[0] = "$deferredBuffer";
|
|
samplerNames[0] = "$deferredBuffer";
|
|
samplerNames[1] = "$shadowMap";
|
|
samplerNames[1] = "$shadowMap";
|
|
- samplerNames[2] = "$cookieMap";
|
|
|
|
- samplerNames[3] = "$gTapRotationTex";
|
|
|
|
- samplerNames[4] = "$lightBuffer";
|
|
|
|
- samplerNames[5] = "$colorBuffer";
|
|
|
|
- samplerNames[6] = "$matInfoBuffer";
|
|
|
|
|
|
+ samplerNames[2] = "$gTapRotationTex";
|
|
|
|
+ samplerNames[3] = "$colorBuffer";
|
|
|
|
+ samplerNames[4] = "$matInfoBuffer";
|
|
|
|
+ samplerNames[5] = "$cookieMap";
|
|
|
|
|
|
pixVersion = 3.0;
|
|
pixVersion = 3.0;
|
|
};
|
|
};
|
|
@@ -194,7 +189,6 @@ singleton CustomMaterial( AL_SpotLightMaterial )
|
|
sampler["deferredBuffer"] = "#deferred";
|
|
sampler["deferredBuffer"] = "#deferred";
|
|
sampler["shadowMap"] = "$dynamiclight";
|
|
sampler["shadowMap"] = "$dynamiclight";
|
|
sampler["cookieMap"] = "$dynamiclightmask";
|
|
sampler["cookieMap"] = "$dynamiclightmask";
|
|
- sampler["lightBuffer"] = "#specularLighting";
|
|
|
|
sampler["colorBuffer"] = "#color";
|
|
sampler["colorBuffer"] = "#color";
|
|
sampler["matInfoBuffer"] = "#matinfo";
|
|
sampler["matInfoBuffer"] = "#matinfo";
|
|
|
|
|