2021-04-10 09:14:16 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
|
|
|
|
<PropertyList>
|
|
|
|
<name>Effects/stars</name>
|
|
|
|
|
2023-11-06 13:51:53 +00:00
|
|
|
<parameters>
|
2024-01-07 15:18:55 +00:00
|
|
|
<max-radiance type="float">50.0</max-radiance>
|
2023-11-06 13:51:53 +00:00
|
|
|
</parameters>
|
|
|
|
|
2021-04-10 09:14:16 +00:00
|
|
|
<!-- 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>
|
|
|
|
|
2023-11-06 13:51:53 +00:00
|
|
|
<technique n="129">
|
|
|
|
<scheme>hdr-forward</scheme>
|
|
|
|
<pass>
|
2024-01-07 15:18:55 +00:00
|
|
|
<!-- Disable depth testing -->
|
2023-11-06 13:51:53 +00:00
|
|
|
<depth>
|
|
|
|
<enabled>false</enabled>
|
|
|
|
</depth>
|
|
|
|
<!-- Only render the stars on top of the skydome -->
|
|
|
|
<stencil>
|
|
|
|
<function>equal</function>
|
|
|
|
<value>0</value>
|
|
|
|
</stencil>
|
2024-01-07 15:18:55 +00:00
|
|
|
<!-- Make sure we render after the skydome -->
|
|
|
|
<render-bin>
|
|
|
|
<bin-number>-9</bin-number>
|
|
|
|
<bin-name>RenderBin</bin-name>
|
|
|
|
</render-bin>
|
2023-11-06 13:51:53 +00:00
|
|
|
<cull-face>off</cull-face>
|
2024-01-07 15:18:55 +00:00
|
|
|
<!-- Additive blending to add the sky in-scattering from the skydome -->
|
2023-11-06 13:51:53 +00:00
|
|
|
<blend>
|
|
|
|
<active>true</active>
|
2024-01-07 15:18:55 +00:00
|
|
|
<source>one</source>
|
|
|
|
<destination>one</destination>
|
2023-11-06 13:51:53 +00:00
|
|
|
</blend>
|
|
|
|
<program>
|
|
|
|
<vertex-shader>Shaders/HDR/stars.vert</vertex-shader>
|
|
|
|
<fragment-shader>Shaders/HDR/stars.frag</fragment-shader>
|
2024-01-07 15:18:55 +00:00
|
|
|
<fragment-shader>Shaders/HDR/exposure.glsl</fragment-shader>
|
2023-11-06 13:51:53 +00:00
|
|
|
</program>
|
|
|
|
<uniform>
|
|
|
|
<name>max_radiance</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value><use>max-radiance</use></value>
|
|
|
|
</uniform>
|
2024-01-07 15:18:55 +00:00
|
|
|
<uniform>
|
|
|
|
<name>transmittance_tex</name>
|
|
|
|
<type>sampler-2d</type>
|
|
|
|
<value type="int">12</value>
|
|
|
|
</uniform>
|
|
|
|
<!-- exposure.glsl -->
|
|
|
|
<uniform>
|
|
|
|
<name>lum_tex</name>
|
|
|
|
<type>sampler-2d</type>
|
|
|
|
<value type="int">14</value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>exposure_compensation</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value><use>exposure-compensation</use></value>
|
|
|
|
</uniform>
|
2023-11-06 13:51:53 +00:00
|
|
|
</pass>
|
2021-04-10 09:14:16 +00:00
|
|
|
</technique>
|
|
|
|
</PropertyList>
|