mirror of
https://github.com/id-Software/DOOM-3-BFG.git
synced 2025-02-27 14:11:20 +00:00
ATI hotfix for shadow mapping. #116
This commit is contained in:
parent
63add75e7f
commit
952907fa77
2 changed files with 2 additions and 2 deletions
|
@ -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];
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue