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:
committed by
Michał Janiszewski
parent
3d2d99817c
commit
d3d41ea724
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user