1
0
Fork 0
fgdata/Effects/stars.eff
Fernando García Liñán 746532f098 HDR: Render the Moon, stars and planets
Moon textures have been adapted from the following webpage:

https://svs.gsfc.nasa.gov/4720
NASA's Scientific Visualization Studio
2023-11-06 14:56:45 +01:00

48 lines
1.2 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<PropertyList>
<name>Effects/stars</name>
<parameters>
<max-radiance type="float">2.0</max-radiance>
</parameters>
<!-- Fixed-pipeline fallback -->
<technique n="11">
<pass>
<!--
An empty pass should be fine as we are filling the stateset manually
in simgear/scene/sky/stars.cxx
-->
</pass>
</technique>
<technique n="129">
<scheme>hdr-forward</scheme>
<pass>
<depth>
<enabled>false</enabled>
</depth>
<!-- Only render the stars on top of the skydome -->
<stencil>
<function>equal</function>
<value>0</value>
</stencil>
<cull-face>off</cull-face>
<blend>
<active>true</active>
<source>src-alpha</source>
<destination>one-minus-src-alpha</destination>
</blend>
<program>
<vertex-shader>Shaders/HDR/stars.vert</vertex-shader>
<fragment-shader>Shaders/HDR/stars.frag</fragment-shader>
</program>
<uniform>
<name>max_radiance</name>
<type>float</type>
<value><use>max-radiance</use></value>
</uniform>
</pass>
</technique>
</PropertyList>