1
0
Fork 0

Reverse traffic direction on dual-lane roads in ALS traffic shader

This commit is contained in:
Thorsten Renk 2017-05-15 09:55:28 +03:00
parent 52884c7f12
commit 54f08d8891

View file

@ -349,6 +349,8 @@ void main (void)
else {cOffset = 5.0;}
}
if (rtype_dual_lane == 1) {cSign = -1.0;}
cSign *= road_traffic_direction;
float total_traffic_density = road_traffic_density * rtype_traffic_density;