1
0
Fork 0

osm2city building, road, railway materials.

This commit is contained in:
Stuart Buchanan 2017-05-09 14:16:44 +01:00
parent b5c689e4b5
commit d5b8ae9ccf
10 changed files with 97 additions and 0 deletions

30
Effects/cityLM.eff Normal file
View file

@ -0,0 +1,30 @@
<?xml version="1.0" encoding="utf-8"?>
<PropertyList>
<name>Effects/cityLM</name>
<inherits-from>/Effects/model-combined-deferred</inherits-from>
<parameters>
<!-- Light Map -->
<lightmap-enabled type="int">1</lightmap-enabled>
<lightmap-multi type="int">1</lightmap-multi>
<texture n="3">
<image>/Textures/osm2city/atlas_facades_LM.png</image>
<wrap-s>repeat</wrap-s>
<wrap-t>repeat</wrap-t>
</texture>
<lightmap-factor type="float" n="0"><use>/scenery/osm2city/lightmap-factor</use></lightmap-factor>
<lightmap-color type="vec3d" n="0"> 1. 0.88 0.6 </lightmap-color>
<lightmap-factor type="float" n="1"><use>/scenery/osm2city/lightmap-factor</use></lightmap-factor>
<!--
<lightmap-color type="vec3d" n="1"> 0.941 0.682 0.086 </lightmap-color>
<lightmap-color type="vec3d" n="1"> 0.941 0.682 0.286 </lightmap-color>
-->
<lightmap-color type="vec3d" n="1"> 0.564 0.409 0.172 </lightmap-color>
<lightmap-factor type="float" n="2">0</lightmap-factor>
<lightmap-factor type="float" n="3">0</lightmap-factor>
<!--
<lightmap-factor type="float" n="3">1</lightmap-factor>
<lightmap-color type="vec3d" n="3"> 1 1 1 </lightmap-color>
-->
</parameters>
</PropertyList>

9
Effects/road-high.eff Normal file
View file

@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<PropertyList>
<name>Effects/road-high</name>
<inherits-from>Effects/road</inherits-from>
<parameters>
<speed-factor>1.2</speed-factor>
<base-density>3.0</base-density>
</parameters>
</PropertyList>

9
Effects/road-low.eff Normal file
View file

@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<PropertyList>
<name>Effects/road-low</name>
<inherits-from>Effects/road</inherits-from>
<parameters>
<speed-factor>0.3</speed-factor>
<base-density>0.2</base-density>
</parameters>
</PropertyList>

9
Effects/road-mid.eff Normal file
View file

@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<PropertyList>
<name>Effects/road-mid</name>
<inherits-from>Effects/road</inherits-from>
<parameters>
<speed-factor>0.8</speed-factor>
<base-density>0.25</base-density>
</parameters>
</PropertyList>

25
Effects/roads.eff Normal file
View file

@ -0,0 +1,25 @@
<?xml version="1.0" encoding="utf-8"?>
<PropertyList>
<name>Effects/roadsLM</name>
<inherits-from>/Effects/model-combined-deferred</inherits-from>
<parameters>
<!-- Light Map -->
<lightmap-enabled type="int">1</lightmap-enabled>
<lightmap-multi type="int">0</lightmap-multi>
<lightmap-color type="vec3d" n="0"> 0.941 0.682 0.086 </lightmap-color>
<texture n="3">
<image>tex/roads_LM.png</image>
<wrap-s>repeat</wrap-s>
<wrap-t>repeat</wrap-t>
</texture>
<!--
240 174 22
<lightmap-factor type="float" n="1">0</lightmap-factor>
<lightmap-color type="vec3d" n="1"> 0 0 0.5 </lightmap-color>
<lightmap-factor type="float" n="2">0</lightmap-factor>
<lightmap-color type="vec3d" n="2"> 0 0 0.5 </lightmap-color>
<lightmap-factor type="float" n="3">1</lightmap-factor>
<lightmap-color type="vec3d" n="3"> 1 1 1 </lightmap-color>
-->
</parameters>
</PropertyList>

View file

@ -470,4 +470,19 @@
</glyph>
</material>
<material n="2101">
<name>OSM_Building</name>
<effect>Effects/cityLM</effect>
</material>
<material n="2102">
<name>OSM_Road</name>
<effect>Effects/road-high</effect>
</material>
<material n="2103">
<name>OSM_Railway</name>
<effect>Effects/road-high</effect>
</material>
</PropertyList>

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.4 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 866 KiB

BIN
Textures/osm2city/roads.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 849 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB