SSAO shader fixes

master
Lee Salzman 2013-02-11 04:33:18 +02:00
parent de6d4cfbd8
commit 2909422cbf
2 changed files with 2 additions and 2 deletions

View File

@ -2412,7 +2412,7 @@ bilateralvariantshader = [
void main(void)
{
gl_Position = gl_Vertex;
@(? (&& $reduced [|| $upscaled [! $packed]]) [gl_TexCoord[0].xy = gl_MultiTexCoord0.xy;])
@(? $reduced [gl_TexCoord[0].xy = gl_MultiTexCoord0.xy;])
@(? $upscaled [gl_TexCoord[1].xy = gl_MultiTexCoord1.xy;])
}
] [

View File

@ -80,7 +80,7 @@ Shader *loadbilateralshader(int pass)
int optslen = 0;
bool linear = aoreducedepth && (aoreduce || aoreducedepth > 1), upscale = aoreduce && aobilateralupscale;
if(aoreduce && (upscale || !linear)) opts[optslen++] = 'r';
if(aoreduce && (upscale || (!linear && !aopackdepth))) opts[optslen++] = 'r';
if(upscale) opts[optslen++] = 'u';
else if(linear) opts[optslen++] = 'l';
if(aopackdepth) opts[optslen++] = 'p';