1
0
Fork 0

WS30: Road rendering improvements

- Adjust traffic density depending on road type
- No snow build up on roads
This commit is contained in:
Stuart Buchanan 2023-01-11 21:40:42 +00:00
parent 73fbeaade2
commit 29a0766cd9
3 changed files with 6 additions and 8 deletions

View file

@ -2,8 +2,7 @@
<PropertyList>
<name>Effects/ws30-road-high</name>
<inherits-from>Effects/ws30-road</inherits-from>
<parameters>
<speed-factor>1.2</speed-factor>
<base-density>3.0</base-density>
<parameters n="0">
<road-traffic-density n="0">0.8</road-traffic-density>
</parameters>
</PropertyList>

View file

@ -2,8 +2,7 @@
<PropertyList>
<name>Effects/ws30-road-mid</name>
<inherits-from>Effects/ws30-road</inherits-from>
<parameters>
<speed-factor>0.8</speed-factor>
<base-density>0.25</base-density>
<parameters n="0">
<road-traffic-density n="0">0.1</road-traffic-density>
</parameters>
</PropertyList>

View file

@ -50,7 +50,7 @@
<normalmap-enabled>0</normalmap-enabled>
<lightmap-color type="vec3d" n="0"> 0.941 0.682 0.086 </lightmap-color>
<snow_level><use>/environment/snow-level-m</use></snow_level>
<snow_thickness_factor><use>/environment/surface/snow-thickness-factor</use></snow_thickness_factor>
<snow_thickness_factor>0</snow_thickness_factor>
<road-traffic-enabled><use>/sim/rendering/osm/road-traffic-enabled</use></road-traffic-enabled>
<road-traffic-density><use>/sim/rendering/osm/road-traffic-density</use></road-traffic-density>
<road-traffic-direction><use>/sim/rendering/osm/road-traffic-direction</use></road-traffic-direction>
@ -142,7 +142,7 @@
</bin-name>
</render-bin>
<!-- Diffuse texture unit-->
<texture-unit>
<texture-unit n="0">
<unit>0</unit>
<image>
<use>texture[0]/image</use>