1
0
Fork 0

Adding lfeat effect to apply polygon-offset to linear features

This commit is contained in:
PSadrozinski 2011-11-06 10:08:15 -05:00 committed by Christian Schmitt
parent 4841ab6206
commit 7e5b3e2530
2 changed files with 43 additions and 0 deletions

25
Effects/lfeat.eff Normal file
View file

@ -0,0 +1,25 @@
<?xml version="1.0" encoding="utf-8"?>
<PropertyList>
<name>Effects/lfeat</name>
<inherits-from>Effects/terrain-default</inherits-from>
<parameters>
</parameters>
<technique n="1">
<pass>
<texture-unit>
<unit>0</unit>
<image><use>texture[0]/image</use></image>
<filter><use>texture[0]/filter</use></filter>
<wrap-s><use>texture[0]/wrap-s</use></wrap-s>
<wrap-t><use>texture[0]/wrap-t</use></wrap-t>
<internal-format>
<use>texture[0]/internal-format</use>
</internal-format>
</texture-unit>
<polygon-offset>
<factor>-1.0</factor>
<units>-1.0</units>
</polygon-offset>
</pass>
</technique>
</PropertyList>

View file

@ -165,91 +165,109 @@ Shared parameters for various materials.
<material>
<name>lf_sng_solid_yellow</name>
<effect>Effects/lfeat</effect>
<texture>Runway/lf_sng_solid_yellow.png</texture>
</material>
<material>
<name>lf_sng_broken_yellow</name>
<effect>Effects/lfeat</effect>
<texture>Runway/lf_sng_broken_yellow.png</texture>
</material>
<material>
<name>lf_dbl_solid_yellow</name>
<effect>Effects/lfeat</effect>
<texture>Runway/lf_dbl_solid_yellow.png</texture>
</material>
<material>
<name>lf_runway_hold</name>
<effect>Effects/lfeat</effect>
<texture>Runway/lf_runway_hold.png</texture>
</material>
<material>
<name>lf_sng_broken_yellow</name>
<effect>Effects/lfeat</effect>
<texture>Runway/lf_sng_broken_yellow.png</texture>
</material>
<material>
<name>lf_ils_hold</name>
<effect>Effects/lfeat</effect>
<texture>Runway/lf_ils_hold.png</texture>
</material>
<material>
<name>lf_safetyzone_centerline</name>
<effect>Effects/lfeat</effect>
<texture>Runway/lf_safetyzone_centerline.png</texture>
</material>
<material>
<name>lf_sng_lane_queue</name>
<effect>Effects/lfeat</effect>
<texture>Runway/lf_sng_lane_queue.png</texture>
</material>
<material>
<name>lf_dbl_lane_queue</name>
<effect>Effects/lfeat</effect>
<texture>Runway/lf_dbl_lane_queue.png</texture>
</material>
<material>
<name>lf_sng_solid_yellow_border</name>
<effect>Effects/lfeat</effect>
<texture>Runway/lf_sng_solid_yellow_border.png</texture>
</material>
<material>
<name>lf_sng_broken_yellow_border</name>
<effect>Effects/lfeat</effect>
<texture>Runway/lf_sng_broken_yellow_borde.png</texture>
</material>
<material>
<name>lf_dbl_solid_yellow_border</name>
<effect>Effects/lfeat</effect>
<texture>Runway/lf_dbl_solid_yellow_border.png</texture>
</material>
<material>
<name>lf_runway_hold_border</name>
<effect>Effects/lfeat</effect>
<texture>Runway/lf_runway_hold_border.png</texture>
</material>
<material>
<name>lf_other_hold_border</name>
<effect>Effects/lfeat</effect>
<texture>Runway/lf_other_hold_border.png</texture>
</material>
<material>
<name>lf_ils_hold_border</name>
<effect>Effects/lfeat</effect>
<texture>Runway/lf_ils_hold_border.png</texture>
</material>
<material>
<name>lf_safetyzone_centerline_border</name>
<effect>Effects/lfeat</effect>
<texture>Runway/lf_safetyzone_centerline_border.png</texture>
</material>
<material>
<name>lf_sng_lane_queue_border</name>
<effect>Effects/lfeat</effect>
<texture>Runway/lf_sng_lane_queue_border.png</texture>
</material>
<material>
<name>lf_dbl_lane_queue_border</name>
<effect>Effects/lfeat</effect>
<texture>Runway/lf_dbl_lane_queue_border.png</texture>
</material>