| 1 |
<?xml version="1.0" encoding="utf-8"?> |
| 2 |
<PropertyList> |
| 3 |
<name>Effects/cloud-noctilucent</name> |
| 4 |
<parameters> |
| 5 |
<texture n ="0"> |
| 6 |
</texture> |
| 7 |
<terminator><use>/environment/terminator-relative-position-m</use></terminator> |
| 8 |
<altitude><use>/sim/rendering/eye-altitude-m</use></altitude> |
| 9 |
<cloud_self_shading><use>/environment/cloud-self-shading</use></cloud_self_shading> |
| 10 |
<moonlight><use>/environment/moonlight</use></moonlight> |
| 11 |
</parameters> |
| 12 |
|
| 13 |
<technique n="9"> |
| 14 |
<predicate> |
| 15 |
<and> |
| 16 |
<property>/sim/rendering/shaders/skydome</property> |
| 17 |
<property>/sim/rendering/clouds3d-enable</property> |
| 18 |
<less-equal> |
| 19 |
<value type="float">1.0</value> |
| 20 |
<shader-language/> |
| 21 |
</less-equal> |
| 22 |
</and> |
| 23 |
</predicate> |
| 24 |
<pass n="0"> |
| 25 |
<!-- This is apparently not used, so maybe we'll blow it way soon. --> |
| 26 |
<lighting>true</lighting> |
| 27 |
<material> |
| 28 |
<ambient type="vec4d">0.5 0.5 0.5 1.0</ambient> |
| 29 |
<diffuse type="vec4d">0.5 0.5 0.5 1.0</diffuse> |
| 30 |
<color-mode>off</color-mode> |
| 31 |
</material> |
| 32 |
<alpha-test> |
| 33 |
<comparison>greater</comparison> |
| 34 |
<reference type="float">0.01</reference> |
| 35 |
</alpha-test> |
| 36 |
<shade-model>smooth</shade-model> |
| 37 |
<blend> |
| 38 |
<source>src-alpha</source> |
| 39 |
<destination>one-minus-src-alpha</destination> |
| 40 |
</blend> |
| 41 |
<depth> |
| 42 |
<write-mask>false</write-mask> |
| 43 |
</depth> |
| 44 |
<render-bin> |
| 45 |
<bin-number>9</bin-number> |
| 46 |
<bin-name>DepthSortedBin</bin-name> |
| 47 |
</render-bin> |
| 48 |
<texture-unit> |
| 49 |
<unit>0</unit> |
| 50 |
<type><use>texture[0]/type</use></type> |
| 51 |
<image><use>texture[0]/image</use></image> |
| 52 |
<filter><use>texture[0]/filter</use></filter> |
| 53 |
<wrap-s><use>texture[0]/wrap-s</use></wrap-s> |
| 54 |
<wrap-t><use>texture[0]/wrap-t</use></wrap-t> |
| 55 |
<!--<wrap-s>clamp</wrap-s> |
| 56 |
<wrap-t>clamp</wrap-t>--> |
| 57 |
</texture-unit> |
| 58 |
<program> |
| 59 |
<vertex-shader>Shaders/cloud-noctilucent-ALS.vert</vertex-shader> |
| 60 |
<vertex-shader>Shaders/filters-ALS.vert</vertex-shader> |
| 61 |
<fragment-shader>Shaders/cloud-static-ALS.frag</fragment-shader> |
| 62 |
</program> |
| 63 |
<uniform> |
| 64 |
<name>baseTexture</name> |
| 65 |
<type>sampler-2d</type> |
| 66 |
<value type="int">0</value> |
| 67 |
</uniform> |
| 68 |
<uniform> |
| 69 |
<name>terminator</name> |
| 70 |
<type>float</type> |
| 71 |
<value><use>terminator</use></value> |
| 72 |
</uniform> |
| 73 |
<uniform> |
| 74 |
<name>altitude</name> |
| 75 |
<type>float</type> |
| 76 |
<value><use>altitude</use></value> |
| 77 |
</uniform> |
| 78 |
<uniform> |
| 79 |
<name>cloud_self_shading</name> |
| 80 |
<type>float</type> |
| 81 |
<value><use>cloud_self_shading</use></value> |
| 82 |
</uniform> |
| 83 |
<uniform> |
| 84 |
<name>moonlight</name> |
| 85 |
<type>float</type> |
| 86 |
<value><use>moonlight</use></value> |
| 87 |
</uniform> |
| 88 |
<vertex-program-two-side>true</vertex-program-two-side> |
| 89 |
</pass> |
| 90 |
</technique> |
| 91 |
<technique n="10"> |
| 92 |
<predicate> |
| 93 |
<and> |
| 94 |
<property>/sim/rendering/clouds3d-enable</property> |
| 95 |
<less-equal> |
| 96 |
<value type="float">1.0</value> |
| 97 |
<shader-language/> |
| 98 |
</less-equal> |
| 99 |
</and> |
| 100 |
</predicate> |
| 101 |
<pass n="0"> |
| 102 |
<!-- This is apparently not used, so maybe we'll blow it way soon. --> |
| 103 |
<lighting>true</lighting> |
| 104 |
<material> |
| 105 |
<ambient type="vec4d">0.5 0.5 0.5 1.0</ambient> |
| 106 |
<diffuse type="vec4d">0.5 0.5 0.5 1.0</diffuse> |
| 107 |
<color-mode>off</color-mode> |
| 108 |
</material> |
| 109 |
<alpha-test> |
| 110 |
<comparison>greater</comparison> |
| 111 |
<reference type="float">0.01</reference> |
| 112 |
</alpha-test> |
| 113 |
<shade-model>smooth</shade-model> |
| 114 |
<blend> |
| 115 |
<source>src-alpha</source> |
| 116 |
<destination>one-minus-src-alpha</destination> |
| 117 |
</blend> |
| 118 |
<depth> |
| 119 |
<write-mask>false</write-mask> |
| 120 |
</depth> |
| 121 |
<render-bin> |
| 122 |
<bin-number>9</bin-number> |
| 123 |
<bin-name>DepthSortedBin</bin-name> |
| 124 |
</render-bin> |
| 125 |
<texture-unit> |
| 126 |
<unit>0</unit> |
| 127 |
<type><use>texture[0]/type</use></type> |
| 128 |
<image><use>texture[0]/image</use></image> |
| 129 |
<filter><use>texture[0]/filter</use></filter> |
| 130 |
<wrap-s><use>texture[0]/wrap-s</use></wrap-s> |
| 131 |
<wrap-t><use>texture[0]/wrap-t</use></wrap-t> |
| 132 |
<!--<wrap-s>clamp</wrap-s> |
| 133 |
<wrap-t>clamp</wrap-t>--> |
| 134 |
</texture-unit> |
| 135 |
<program> |
| 136 |
<vertex-shader>Shaders/cloud-static.vert</vertex-shader> |
| 137 |
<fragment-shader>Shaders/cloud-static.frag</fragment-shader> |
| 138 |
</program> |
| 139 |
<uniform> |
| 140 |
<name>baseTexture</name> |
| 141 |
<type>sampler-2d</type> |
| 142 |
<value type="int">0</value> |
| 143 |
</uniform> |
| 144 |
<uniform> |
| 145 |
<name>terminator</name> |
| 146 |
<type>float</type> |
| 147 |
<value><use>terminator</use></value> |
| 148 |
</uniform> |
| 149 |
<uniform> |
| 150 |
<name>altitude</name> |
| 151 |
<type>float</type> |
| 152 |
<value><use>altitude</use></value> |
| 153 |
</uniform> |
| 154 |
<vertex-program-two-side>true</vertex-program-two-side> |
| 155 |
</pass> |
| 156 |
</technique> |
| 157 |
|
| 158 |
</PropertyList> |