2014-02-18 21:27:51 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<PropertyList>
|
2014-02-27 22:49:25 +00:00
|
|
|
<name>Effects/surface-lights</name>
|
|
|
|
<parameters>
|
2014-02-18 21:27:51 +00:00
|
|
|
<!-- min-size, max-size, size, attenuation, cull-face parameters filled in by C++ code -->
|
|
|
|
<texture n="0">
|
|
|
|
<type>light-sprite</type>
|
|
|
|
<wrap-s>clamp</wrap-s>
|
|
|
|
<wrap-t>clamp</wrap-t>
|
|
|
|
</texture>
|
2014-02-25 08:49:37 +00:00
|
|
|
<visibility><use>/environment/ground-visibility-m</use></visibility>
|
|
|
|
<avisibility><use>/environment/visibility-m</use></avisibility>
|
|
|
|
<lthickness><use>/environment/ground-haze-thickness-m</use></lthickness>
|
|
|
|
<eye_alt><use>/sim/rendering/eye-altitude-m</use></eye_alt>
|
2014-02-28 07:15:41 +00:00
|
|
|
<terminator><use>/environment/terminator-relative-position-m</use></terminator>
|
2014-02-27 22:49:25 +00:00
|
|
|
</parameters>
|
2014-02-18 21:27:51 +00:00
|
|
|
|
2014-02-27 22:49:25 +00:00
|
|
|
<technique n="10">
|
2014-02-25 08:49:37 +00:00
|
|
|
<!-- ALS -->
|
|
|
|
<predicate>
|
|
|
|
<and>
|
|
|
|
<property>/sim/rendering/point-sprites</property>
|
|
|
|
<property>/sim/rendering/shaders/skydome</property>
|
|
|
|
<or>
|
|
|
|
<less-equal>
|
|
|
|
<value type="float">2.0</value>
|
|
|
|
<glversion/>
|
|
|
|
</less-equal>
|
|
|
|
<and>
|
|
|
|
<extension-supported>GL_ARB_point_sprite</extension-supported>
|
|
|
|
<extension-supported>GL_ARB_point_parameters</extension-supported>
|
2014-02-28 07:15:41 +00:00
|
|
|
<extension-supported>GL_ARB_shader_objects</extension-supported>
|
2014-02-25 08:49:37 +00:00
|
|
|
<extension-supported>GL_ARB_shading_language_100</extension-supported>
|
|
|
|
<extension-supported>GL_ARB_vertex_shader</extension-supported>
|
|
|
|
<extension-supported>GL_ARB_fragment_shader</extension-supported>
|
|
|
|
</and>
|
|
|
|
</or>
|
|
|
|
</and>
|
|
|
|
</predicate>
|
2014-02-28 07:15:41 +00:00
|
|
|
<pass>
|
|
|
|
<render-bin>
|
|
|
|
<bin-number>8</bin-number>
|
|
|
|
<bin-name>DepthSortedBin</bin-name>
|
|
|
|
</render-bin>
|
|
|
|
<lighting>false</lighting>
|
|
|
|
<blend>
|
|
|
|
<source>src-alpha</source>
|
|
|
|
<destination>one-minus-src-alpha</destination>
|
|
|
|
</blend>
|
|
|
|
<depth>
|
|
|
|
<write-mask>false</write-mask>
|
|
|
|
</depth>
|
|
|
|
<alpha-test>
|
|
|
|
<comparison>gequal</comparison>
|
|
|
|
<reference type="float">0.03</reference>
|
|
|
|
</alpha-test>
|
|
|
|
<cull-face><use>directional</use></cull-face>
|
|
|
|
<polygon-mode>
|
2014-02-25 08:49:37 +00:00
|
|
|
<front>point</front>
|
|
|
|
<back>point</back>
|
|
|
|
</polygon-mode>
|
|
|
|
<point>
|
|
|
|
<min-size><use>min-size</use></min-size>
|
|
|
|
<max-size><use>max-size</use></max-size>
|
|
|
|
<size><use>size</use></size>
|
|
|
|
<attenuation><use>attenuation</use></attenuation>
|
|
|
|
</point>
|
|
|
|
<texture-unit>
|
|
|
|
<unit>0</unit>
|
|
|
|
<point-sprite>true</point-sprite>
|
|
|
|
<type><use>texture[0]/type</use></type>
|
|
|
|
<wrap-s><use>texture[0]/wrap-s</use></wrap-s>
|
|
|
|
<wrap-t><use>texture[0]/wrap-t</use></wrap-t>
|
|
|
|
</texture-unit>
|
|
|
|
<program>
|
|
|
|
<vertex-shader>Shaders/surface-light-lightfield.vert</vertex-shader>
|
|
|
|
<fragment-shader>Shaders/surface-light-lightfield.frag</fragment-shader>
|
2014-04-24 06:43:28 +00:00
|
|
|
<fragment-shader>Shaders/noise.frag</fragment-shader>
|
2014-02-25 08:49:37 +00:00
|
|
|
</program>
|
|
|
|
<uniform>
|
2014-02-28 07:15:41 +00:00
|
|
|
<name>size</name>
|
|
|
|
<type>float</type>
|
2014-02-25 08:49:37 +00:00
|
|
|
<value><use>size</use></value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>visibility</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value><use>visibility</use></value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>avisibility</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value><use>avisibility</use></value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>hazeLayerAltitude</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value><use>lthickness</use></value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>eye_alt</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value><use>eye_alt</use></value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>texture</name>
|
|
|
|
<type>sampler-2d</type>
|
|
|
|
<value type="int">0</value>
|
|
|
|
</uniform>
|
2014-02-28 07:15:41 +00:00
|
|
|
<uniform>
|
|
|
|
<name>terminator</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value><use>terminator</use></value>
|
|
|
|
</uniform>
|
|
|
|
<vertex-program-point-size>true</vertex-program-point-size>
|
|
|
|
</pass>
|
2014-02-25 08:49:37 +00:00
|
|
|
</technique>
|
2014-02-28 07:15:41 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
2014-02-25 08:49:37 +00:00
|
|
|
|
2014-02-27 22:49:25 +00:00
|
|
|
<technique n="17">
|
2014-02-18 21:27:51 +00:00
|
|
|
<!-- Combined technique -->
|
|
|
|
<predicate>
|
|
|
|
<and>
|
|
|
|
<property>/sim/rendering/point-sprites</property>
|
|
|
|
<or>
|
|
|
|
<less-equal>
|
|
|
|
<value type="float">2.0</value>
|
|
|
|
<glversion/>
|
|
|
|
</less-equal>
|
|
|
|
<and>
|
|
|
|
<extension-supported>GL_ARB_point_sprite</extension-supported>
|
|
|
|
<extension-supported>GL_ARB_point_parameters</extension-supported>
|
|
|
|
</and>
|
|
|
|
</or>
|
|
|
|
</and>
|
|
|
|
</predicate>
|
2014-02-27 22:49:25 +00:00
|
|
|
<pass>
|
|
|
|
<render-bin>
|
|
|
|
<bin-number>8</bin-number>
|
|
|
|
<bin-name>DepthSortedBin</bin-name>
|
|
|
|
</render-bin>
|
|
|
|
<lighting>false</lighting>
|
|
|
|
<depth>
|
|
|
|
<write-mask>false</write-mask>
|
|
|
|
</depth>
|
|
|
|
<blend>
|
|
|
|
<source>src-alpha</source>
|
|
|
|
<destination>one-minus-src-alpha</destination>
|
|
|
|
</blend>
|
|
|
|
<alpha-test>
|
|
|
|
<comparison>gequal</comparison>
|
|
|
|
<reference type="float">0.1</reference>
|
|
|
|
</alpha-test>
|
|
|
|
<cull-face><use>directional</use></cull-face>
|
|
|
|
<polygon-mode>
|
2014-02-18 21:27:51 +00:00
|
|
|
<front>point</front>
|
|
|
|
<back>point</back>
|
|
|
|
</polygon-mode>
|
|
|
|
<point>
|
|
|
|
<min-size><use>min-size</use></min-size>
|
|
|
|
<max-size><use>max-size</use></max-size>
|
|
|
|
<size><use>size</use></size>
|
|
|
|
<attenuation><use>attenuation</use></attenuation>
|
|
|
|
</point>
|
|
|
|
<texture-unit>
|
|
|
|
<unit>0</unit>
|
|
|
|
<point-sprite>true</point-sprite>
|
|
|
|
<type><use>texture[0]/type</use></type>
|
|
|
|
<wrap-s><use>texture[0]/wrap-s</use></wrap-s>
|
|
|
|
<wrap-t><use>texture[0]/wrap-t</use></wrap-t>
|
|
|
|
</texture-unit>
|
2014-02-27 22:49:25 +00:00
|
|
|
</pass>
|
2014-02-18 21:27:51 +00:00
|
|
|
</technique>
|
|
|
|
|
2014-02-27 22:49:25 +00:00
|
|
|
<technique n="18">
|
2014-02-18 21:27:51 +00:00
|
|
|
<!-- Sprite technique -->
|
|
|
|
<predicate>
|
|
|
|
<and>
|
|
|
|
<property>/sim/rendering/point-sprites</property>
|
|
|
|
<or>
|
|
|
|
<less-equal>
|
|
|
|
<value type="float">2.0</value>
|
|
|
|
<glversion/>
|
|
|
|
</less-equal>
|
|
|
|
<extension-supported>GL_ARB_point_sprite</extension-supported>
|
|
|
|
</or>
|
|
|
|
</and>
|
|
|
|
</predicate>
|
2014-02-27 22:49:25 +00:00
|
|
|
<pass>
|
|
|
|
<render-bin>
|
|
|
|
<bin-number>8</bin-number>
|
|
|
|
<bin-name>DepthSortedBin</bin-name>
|
|
|
|
</render-bin>
|
|
|
|
<lighting>false</lighting>
|
|
|
|
<depth>
|
|
|
|
<write-mask>false</write-mask>
|
|
|
|
</depth>
|
|
|
|
<blend>
|
|
|
|
<source>src-alpha</source>
|
|
|
|
<destination>one-minus-src-alpha</destination>
|
|
|
|
</blend>
|
|
|
|
<cull-face><use>directional</use></cull-face>
|
|
|
|
<polygon-mode>
|
2014-02-18 21:27:51 +00:00
|
|
|
<front>point</front>
|
|
|
|
<back>point</back>
|
|
|
|
</polygon-mode>
|
|
|
|
<texture-unit>
|
|
|
|
<unit>0</unit>
|
|
|
|
<point-sprite>true</point-sprite>
|
|
|
|
<type><use>texture[0]/type</use></type>
|
|
|
|
<wrap-s><use>texture[0]/wrap-s</use></wrap-s>
|
|
|
|
<wrap-t><use>texture[0]/wrap-t</use></wrap-t>
|
|
|
|
</texture-unit>
|
2014-02-27 22:49:25 +00:00
|
|
|
</pass>
|
2014-02-18 21:27:51 +00:00
|
|
|
</technique>
|
|
|
|
|
2014-02-27 22:49:25 +00:00
|
|
|
<technique n="19">
|
2014-02-18 21:27:51 +00:00
|
|
|
<!-- Attenuation technique -->
|
|
|
|
<predicate>
|
|
|
|
<and>
|
|
|
|
<or>
|
|
|
|
<less-equal>
|
|
|
|
<value type="float">2.0</value>
|
|
|
|
<glversion/>
|
|
|
|
</less-equal>
|
|
|
|
<extension-supported>GL_ARB_point_parameters</extension-supported>
|
|
|
|
</or>
|
|
|
|
</and>
|
|
|
|
</predicate>
|
2014-02-27 22:49:25 +00:00
|
|
|
<pass>
|
2014-02-18 21:27:51 +00:00
|
|
|
<point>
|
|
|
|
<min-size><use>min-size</use></min-size>
|
|
|
|
<max-size><use>max-size</use></max-size>
|
|
|
|
<size><use>size</use></size>
|
|
|
|
<attenuation><use>attenuation</use></attenuation>
|
|
|
|
</point>
|
2014-02-27 22:49:25 +00:00
|
|
|
<render-bin>
|
|
|
|
<bin-number>8</bin-number>
|
|
|
|
<bin-name>DepthSortedBin</bin-name>
|
|
|
|
</render-bin>
|
|
|
|
<depth>
|
|
|
|
<write-mask>false</write-mask>
|
|
|
|
</depth>
|
|
|
|
<blend>
|
|
|
|
<source>src-alpha</source>
|
|
|
|
<destination>one-minus-src-alpha</destination>
|
|
|
|
</blend>
|
|
|
|
<lighting>false</lighting>
|
|
|
|
<cull-face><use>directional</use></cull-face>
|
|
|
|
<polygon-mode>
|
2014-02-18 21:27:51 +00:00
|
|
|
<front>point</front>
|
|
|
|
<back>point</back>
|
|
|
|
</polygon-mode>
|
2014-02-27 22:49:25 +00:00
|
|
|
</pass>
|
|
|
|
</technique>
|
2014-02-18 21:27:51 +00:00
|
|
|
|
2014-02-27 22:49:25 +00:00
|
|
|
<technique n="20">
|
2014-02-18 21:27:51 +00:00
|
|
|
<!-- Basic technique -->
|
2014-02-27 22:49:25 +00:00
|
|
|
<pass>
|
|
|
|
<render-bin>
|
|
|
|
<bin-number>8</bin-number>
|
|
|
|
<bin-name>DepthSortedBin</bin-name>
|
|
|
|
</render-bin>
|
|
|
|
<lighting>false</lighting>
|
|
|
|
<depth>
|
|
|
|
<write-mask>false</write-mask>
|
|
|
|
</depth>
|
|
|
|
<blend>
|
|
|
|
<source>src-alpha</source>
|
|
|
|
<destination>one-minus-src-alpha</destination>
|
|
|
|
</blend>
|
|
|
|
<cull-face><use>directional</use></cull-face>
|
|
|
|
<polygon-mode>
|
2014-02-18 21:27:51 +00:00
|
|
|
<front>point</front>
|
|
|
|
<back>point</back>
|
|
|
|
</polygon-mode>
|
2014-02-27 22:49:25 +00:00
|
|
|
</pass>
|
|
|
|
</technique>
|
2014-02-18 21:27:51 +00:00
|
|
|
</PropertyList>
|