ATI hotfix for shadow mapping. #116

This commit is contained in:
Robert Beckebans 2014-05-17 10:53:14 +02:00
parent 63add75e7f
commit 952907fa77
2 changed files with 2 additions and 2 deletions

View file

@ -260,7 +260,7 @@ void main( PS_IN fragment, out PS_OUT result )
rot.x = cos( random.x ); rot.x = cos( random.x );
rot.y = sin( random.x ); rot.y = sin( random.x );
float shadowTexelSize = rpScreenCorrectionFactor.z * rpJitterTexScale; float shadowTexelSize = rpScreenCorrectionFactor.z * rpJitterTexScale.x;
for( int i = 0; i < 12; i++ ) for( int i = 0; i < 12; i++ )
{ {
float2 jitter = poissonDisk[i]; float2 jitter = poissonDisk[i];

View file

@ -4435,7 +4435,7 @@ static const cgShaderDef_t cg_renderprogs[] =
" rot.x = cos( random.x );\n" " rot.x = cos( random.x );\n"
" rot.y = sin( random.x );\n" " rot.y = sin( random.x );\n"
" \n" " \n"
" float shadowTexelSize = rpScreenCorrectionFactor.z * rpJitterTexScale;\n" " float shadowTexelSize = rpScreenCorrectionFactor.z * rpJitterTexScale.x;\n"
" for( int i = 0; i < 12; i++ )\n" " for( int i = 0; i < 12; i++ )\n"
" {\n" " {\n"
" float2 jitter = poissonDisk[i];\n" " float2 jitter = poissonDisk[i];\n"