I employed ALS display shader on a Canvas screen and for me the result seems now to be reversed with respect to what the Shuttle example in the wiki page in the ALS technical notes shows?
The sunlit parts of the screen have a stronly increased contrast while the shaded parts show a flat contrast. Is this not exactly opposite as expected?
Code below, did I do anything wrong to the shader parameters?
- Code: Select all
<PropertyList>
<!-- display shader effect common parts -->
<opacity-cube-scale type="vec3d" n="0">0.25 0.25 0.25</opacity-cube-scale>
<opacity-cube-angle type="float">14.0</opacity-cube-angle>
<sample-res>0.0004</sample-res>
<dirt-factor>0.9</dirt-factor>
<contrast>0.5</contrast>
<texture n="4">
<type>cubemap</type>
<images>
<positive-x>Aircraft/ec145/Models/Effects/cubemap/shdw-map-px.png</positive-x>
<negative-x>Aircraft/ec145/Models/Effects/cubemap/shdw-map-nx-panel.png</negative-x>
<positive-y>Aircraft/ec145/Models/Effects/cubemap/shdw-map-py-panel.png</positive-y>
<negative-y>Aircraft/ec145/Models/Effects/cubemap/shdw-map-ny-panel.png</negative-y>
<positive-z>Aircraft/ec145/Models/Effects/cubemap/shdw-map-pz-panel.png</positive-z>
<negative-z>Aircraft/ec145/Models/Effects/cubemap/shdw-map-nz.png</negative-z>
</images>
</texture>
<texture n="5">
<type>2d</type>
<filter>linear-mipmap-linear</filter>
<wrap-s>clamp</wrap-s>
<wrap-t>clamp</wrap-t>
<internal-format>normalized</internal-format>
<image>Aircraft/Generic/Effects/dust-effect-overlay.png</image>
</texture>
</PropertyList>
Note that the cubemap center is defined elsewhere.
litzi