From c7b73ff91b9f6b31eb09099ef12413ad2e81fad6 Mon Sep 17 00:00:00 2001 From: Stuart Buchanan Date: Tue, 11 Jan 2022 21:38:38 +0000 Subject: [PATCH] WS30: Workaround for ALS Ultra road effect The terrain-default Ultra (n=3) technique fails for the WS30 line feature. This change simply disables it ahead of re-implementing the traffic shader. --- Effects/ws30-railway.eff | 20 ++++++++++++++++++++ Effects/ws30-road-high.eff | 20 ++++++++++++++++++++ Effects/ws30-road-mid.eff | 20 ++++++++++++++++++++ Materials/base/materials-base.xml | 8 +++----- 4 files changed, 63 insertions(+), 5 deletions(-) create mode 100644 Effects/ws30-railway.eff create mode 100644 Effects/ws30-road-high.eff create mode 100644 Effects/ws30-road-mid.eff diff --git a/Effects/ws30-railway.eff b/Effects/ws30-railway.eff new file mode 100644 index 000000000..76b84d361 --- /dev/null +++ b/Effects/ws30-railway.eff @@ -0,0 +1,20 @@ + + + Effects/ws30-railway + Effects/terrain-default + + 0.8 + 0.25 + + + + + + + 2.0 + 1.0 + + + + + diff --git a/Effects/ws30-road-high.eff b/Effects/ws30-road-high.eff new file mode 100644 index 000000000..7bb73f0af --- /dev/null +++ b/Effects/ws30-road-high.eff @@ -0,0 +1,20 @@ + + + Effects/ws30-road-high + Effects/terrain-default + + 1.2 + 3.0 + + + + + + + 2.0 + 1.0 + + + + + diff --git a/Effects/ws30-road-mid.eff b/Effects/ws30-road-mid.eff new file mode 100644 index 000000000..fd674458d --- /dev/null +++ b/Effects/ws30-road-mid.eff @@ -0,0 +1,20 @@ + + + Effects/ws30-road-mid + Effects/terrain-default + + 0.8 + 0.25 + + + + + + + 2.0 + 1.0 + + + + + diff --git a/Materials/base/materials-base.xml b/Materials/base/materials-base.xml index 46f00f5b7..76d12b3ab 100644 --- a/Materials/base/materials-base.xml +++ b/Materials/base/materials-base.xml @@ -635,8 +635,7 @@ ws30Road osm2city/roads.png - Effects/terrain-default - + Effects/ws30-road-mid 0.25 0.375 0.75 @@ -664,8 +663,7 @@ ws30Freeway osm2city/roads.png - Effects/terrain-default - + Effects/ws30-road-high 0.625 0.75 1.0 @@ -727,7 +725,7 @@ ws30Railway osm2city/roads.png - Effects/terrain-default + Effects/ws30-railway 0 0.125 0.5