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>
|
|
|
|
<max-radiance type="float">2.0</max-radiance>
|
|
|
|
</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>
|
|
|
|
<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>
|
2021-04-10 09:14:16 +00:00
|
|
|
</technique>
|
|
|
|
</PropertyList>
|