1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2025-12-24 00:03:11 +01:00

OpenGL: Add single-pass transparency

This commit is contained in:
LRFLEW
2017-10-20 22:00:56 -05:00
committed by Michał Janiszewski
parent 3d2d99817c
commit d3d41ea724
15 changed files with 340 additions and 138 deletions

View File

@@ -40,7 +40,7 @@ void main()
pos.x = (pos.x * (2.0 / uScreenSize.x)) - 1.0;
pos.y = (pos.y * (2.0 / uScreenSize.y)) - 1.0;
pos.y *= -1;
float depth = 1.0 - vDepth * DEPTH_INCREMENT;
float depth = 1.0 - (vDepth + 1) * DEPTH_INCREMENT;
fFlags = vFlags;
fColour = vColour;