Skip to content

Commit

Permalink
ATI hotfix for shadow mapping. #116
Browse files Browse the repository at this point in the history
  • Loading branch information
RobertBeckebans committed May 17, 2014
1 parent 63add75 commit 952907f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion base/renderprogs/interactionSM.pixel
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ void main( PS_IN fragment, out PS_OUT result )
rot.x = cos( 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++ )
{
float2 jitter = poissonDisk[i];
Expand Down
2 changes: 1 addition & 1 deletion neo/renderer/RenderProgs_embedded.h
Original file line number Diff line number Diff line change
Expand Up @@ -4435,7 +4435,7 @@ static const cgShaderDef_t cg_renderprogs[] =
" rot.x = cos( random.x );\n"
" rot.y = sin( random.x );\n"
" \n"
" float shadowTexelSize = rpScreenCorrectionFactor.z * rpJitterTexScale;\n"
" float shadowTexelSize = rpScreenCorrectionFactor.z * rpJitterTexScale.x;\n"
" for( int i = 0; i < 12; i++ )\n"
" {\n"
" float2 jitter = poissonDisk[i];\n"
Expand Down

0 comments on commit 952907f

Please sign in to comment.