From 54f08d889130f8f2b7dbc4570b8c7c17ba3d05c7 Mon Sep 17 00:00:00 2001 From: Thorsten Renk Date: Mon, 15 May 2017 09:55:28 +0300 Subject: [PATCH] Reverse traffic direction on dual-lane roads in ALS traffic shader --- Shaders/road-ALS-ultra.frag | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Shaders/road-ALS-ultra.frag b/Shaders/road-ALS-ultra.frag index dbaf515d5..ab06a9fc6 100644 --- a/Shaders/road-ALS-ultra.frag +++ b/Shaders/road-ALS-ultra.frag @@ -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;