1
0
Fork 0
fgdata/Effects/HDR/atmos-aerial-perspective.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

57 lines
1.8 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<PropertyList>
<name>Effects/HDR/atmos-aerial-perspective</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_aerial_perspective.frag</fragment-shader>
<fragment-shader>Shaders/HDR/math.glsl</fragment-shader>
<fragment-shader>Shaders/HDR/pos_from_depth.glsl</fragment-shader>
<fragment-shader>Shaders/HDR/atmos.glsl</fragment-shader>
<fragment-shader>Shaders/HDR/atmos_spectral.glsl</fragment-shader>
</program>
<uniform>
<name>transmittance_lut</name>
<type>sampler-2d</type>
<value type="int">0</value>
</uniform>
<!-- 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>