1
0
Fork 0
fgdata/Effects/HDR/atmos-transmittance.eff
Fernando García Liñán 82d415cbd4 HDR: Add remaining aerosol types
Now the properties of the atmospheric medium can be changed through the
property tree.
2023-04-16 07:19:22 +02:00

50 lines
1.5 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<PropertyList>
<name>Effects/HDR/atmos-transmittance</name>
<parameters>
<!-- atmos.glsl -->
<aerosol-type>
<use>/sim/rendering/hdr/atmos/aerosol-type</use>
</aerosol-type>
<aerosol-turbidity>
<use>/sim/rendering/hdr/atmos/aerosol-turbidity</use>
</aerosol-turbidity>
<ground-albedo>
<use>/sim/rendering/hdr/atmos/ground-albedo</use>
</ground-albedo>
<month-of-the-year>
<use>/sim/time/utc/month</use>
</month-of-the-year>
</parameters>
<technique n="1">
<pass>
<program>
<vertex-shader>Shaders/HDR/quad.vert</vertex-shader>
<fragment-shader>Shaders/HDR/atmos_transmittance.frag</fragment-shader>
<fragment-shader>Shaders/HDR/math.glsl</fragment-shader>
<fragment-shader>Shaders/HDR/atmos.glsl</fragment-shader>
</program>
<!-- atmos.glsl -->
<uniform>
<name>aerosol_type</name>
<type>int</type>
<value><use>aerosol-type</use></value>
</uniform>
<uniform>
<name>aerosol_turbidity</name>
<type>float</type>
<value><use>aerosol-turbidity</use></value>
</uniform>
<uniform>
<name>ground_albedo</name>
<type>float</type>
<value><use>ground-albedo</use></value>
</uniform>
<uniform>
<name>month_of_the_year</name>
<type>int</type>
<value><use>month-of-the-year</use></value>
</uniform>
</pass>
</technique>
</PropertyList>