SSAO shader fixes
parent
de6d4cfbd8
commit
2909422cbf
|
@ -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;])
|
||||
}
|
||||
] [
|
||||
|
|
|
@ -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';
|
||||
|
|
Loading…
Reference in New Issue