Skip to content

Commit 952907f

Browse files
ATI hotfix for shadow mapping. #116
1 parent 63add75 commit 952907f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

base/renderprogs/interactionSM.pixel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ void main( PS_IN fragment, out PS_OUT result )
260260
rot.x = cos( random.x );
261261
rot.y = sin( random.x );
262262

263-
float shadowTexelSize = rpScreenCorrectionFactor.z * rpJitterTexScale;
263+
float shadowTexelSize = rpScreenCorrectionFactor.z * rpJitterTexScale.x;
264264
for( int i = 0; i < 12; i++ )
265265
{
266266
float2 jitter = poissonDisk[i];

neo/renderer/RenderProgs_embedded.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4435,7 +4435,7 @@ static const cgShaderDef_t cg_renderprogs[] =
44354435
" rot.x = cos( random.x );\n"
44364436
" rot.y = sin( random.x );\n"
44374437
" \n"
4438-
" float shadowTexelSize = rpScreenCorrectionFactor.z * rpJitterTexScale;\n"
4438+
" float shadowTexelSize = rpScreenCorrectionFactor.z * rpJitterTexScale.x;\n"
44394439
" for( int i = 0; i < 12; i++ )\n"
44404440
" {\n"
44414441
" float2 jitter = poissonDisk[i];\n"

0 commit comments

Comments
 (0)