Mark portals in scene alpha channel for the SSAO pass

This commit is contained in:
Magnus Norddahl 2016-09-04 08:15:29 +02:00
commit e025f6e54b
6 changed files with 18 additions and 7 deletions

View file

@ -60,6 +60,7 @@ void FLinearDepthShader::Bind(bool multisample)
shader.Link("shaders/glsl/lineardepth");
shader.SetAttribLocation(0, "PositionInProjection");
DepthTexture[multisample].Init(shader, "DepthTexture");
ColorTexture[multisample].Init(shader, "ColorTexture");
SampleCount[multisample].Init(shader, "SampleCount");
LinearizeDepthA[multisample].Init(shader, "LinearizeDepthA");
LinearizeDepthB[multisample].Init(shader, "LinearizeDepthB");