1
0
Fork 0
fgdata/Effects/HDR/atmos-sky-view.eff

56 lines
1.6 KiB
Text
Raw Normal View History

<?xml version="1.0" encoding="utf-8"?>
<PropertyList>
<name>Effects/HDR/atmos-sky-view</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_sky_view.frag</fragment-shader>
<fragment-shader>Shaders/HDR/math.glsl</fragment-shader>
<fragment-shader>Shaders/HDR/atmos.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>