2021-04-10 09:14:16 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
|
|
|
|
<PropertyList>
|
|
|
|
<name>Effects/model-pbr</name>
|
|
|
|
<parameters>
|
2021-07-31 10:59:16 +00:00
|
|
|
<!-- Base Color -->
|
2021-04-10 09:14:16 +00:00
|
|
|
<texture n="0">
|
|
|
|
<type>white</type>
|
|
|
|
</texture>
|
2021-07-31 10:59:16 +00:00
|
|
|
<base-color-factor type="vec4d">1.0 1.0 1.0 1.0</base-color-factor>
|
2021-04-10 09:14:16 +00:00
|
|
|
<!-- Normalmap -->
|
|
|
|
<texture n="1">
|
2021-08-16 15:04:18 +00:00
|
|
|
<type>null-normalmap</type>
|
2021-04-10 09:14:16 +00:00
|
|
|
</texture>
|
2021-08-16 15:04:18 +00:00
|
|
|
<!-- Metallic and Roughness -->
|
2021-04-10 09:14:16 +00:00
|
|
|
<texture n="2">
|
2021-07-31 10:59:16 +00:00
|
|
|
<type>white</type>
|
2021-04-10 09:14:16 +00:00
|
|
|
</texture>
|
2021-07-31 10:59:16 +00:00
|
|
|
<metallic-factor type="float">1.0</metallic-factor>
|
|
|
|
<roughness-factor type="float">1.0</roughness-factor>
|
|
|
|
<!-- Occlusion -->
|
2021-08-16 15:04:18 +00:00
|
|
|
<texture n="3">
|
2021-04-10 09:14:16 +00:00
|
|
|
<type>white</type>
|
|
|
|
</texture>
|
2021-07-31 10:59:16 +00:00
|
|
|
<!-- Emissive -->
|
2021-08-16 15:04:18 +00:00
|
|
|
<texture n="4">
|
2021-07-31 10:59:16 +00:00
|
|
|
<type>white</type>
|
|
|
|
</texture>
|
|
|
|
<emissive-factor type="vec3d">0.0 0.0 0.0</emissive-factor>
|
2021-08-16 15:04:18 +00:00
|
|
|
<!-- Double Sided -->
|
|
|
|
<cull-face>back</cull-face>
|
|
|
|
<!-- Whether to flip the texture vertically -->
|
|
|
|
<flip-vertically>false</flip-vertically>
|
2021-04-10 09:14:16 +00:00
|
|
|
</parameters>
|
|
|
|
|
|
|
|
<generate>
|
|
|
|
<tangent type="int">6</tangent>
|
|
|
|
<binormal type="int">7</binormal>
|
|
|
|
</generate>
|
|
|
|
|
|
|
|
<technique n="20">
|
|
|
|
<scheme>hdr-geometry</scheme>
|
|
|
|
<pass>
|
2021-08-17 18:58:30 +00:00
|
|
|
<!-- Reverse floating point depth buffer -->
|
|
|
|
<depth>
|
|
|
|
<function>gequal</function>
|
|
|
|
<near>1.0</near>
|
|
|
|
<far>0.0</far>
|
|
|
|
</depth>
|
2021-08-23 10:44:26 +00:00
|
|
|
<stencil>
|
|
|
|
<function>always</function>
|
|
|
|
<value>8</value>
|
|
|
|
<pass>replace</pass>
|
|
|
|
</stencil>
|
2021-04-10 09:14:16 +00:00
|
|
|
<texture-unit>
|
|
|
|
<unit>0</unit>
|
|
|
|
<type><use>texture[0]/type</use></type>
|
|
|
|
<image><use>texture[0]/image</use></image>
|
|
|
|
<filter><use>texture[0]/filter</use></filter>
|
2021-08-16 15:04:18 +00:00
|
|
|
<mag-filter><use>texture[0]/mag-filter</use></mag-filter>
|
2021-04-10 09:14:16 +00:00
|
|
|
<wrap-s><use>texture[0]/wrap-s</use></wrap-s>
|
|
|
|
<wrap-t><use>texture[0]/wrap-t</use></wrap-t>
|
|
|
|
</texture-unit>
|
|
|
|
<texture-unit>
|
|
|
|
<unit>1</unit>
|
|
|
|
<type><use>texture[1]/type</use></type>
|
|
|
|
<image><use>texture[1]/image</use></image>
|
|
|
|
<filter><use>texture[1]/filter</use></filter>
|
2021-08-16 15:04:18 +00:00
|
|
|
<mag-filter><use>texture[1]/mag-filter</use></mag-filter>
|
2021-04-10 09:14:16 +00:00
|
|
|
<wrap-s><use>texture[1]/wrap-s</use></wrap-s>
|
|
|
|
<wrap-t><use>texture[1]/wrap-t</use></wrap-t>
|
|
|
|
</texture-unit>
|
|
|
|
<texture-unit>
|
|
|
|
<unit>2</unit>
|
|
|
|
<type><use>texture[2]/type</use></type>
|
|
|
|
<image><use>texture[2]/image</use></image>
|
|
|
|
<filter><use>texture[2]/filter</use></filter>
|
2021-08-16 15:04:18 +00:00
|
|
|
<mag-filter><use>texture[2]/mag-filter</use></mag-filter>
|
2021-04-10 09:14:16 +00:00
|
|
|
<wrap-s><use>texture[2]/wrap-s</use></wrap-s>
|
|
|
|
<wrap-t><use>texture[2]/wrap-t</use></wrap-t>
|
|
|
|
</texture-unit>
|
|
|
|
<texture-unit>
|
|
|
|
<unit>3</unit>
|
|
|
|
<type><use>texture[3]/type</use></type>
|
|
|
|
<image><use>texture[3]/image</use></image>
|
|
|
|
<filter><use>texture[3]/filter</use></filter>
|
2021-08-16 15:04:18 +00:00
|
|
|
<mag-filter><use>texture[3]/mag-filter</use></mag-filter>
|
2021-04-10 09:14:16 +00:00
|
|
|
<wrap-s><use>texture[3]/wrap-s</use></wrap-s>
|
|
|
|
<wrap-t><use>texture[3]/wrap-t</use></wrap-t>
|
|
|
|
</texture-unit>
|
|
|
|
<texture-unit>
|
|
|
|
<unit>4</unit>
|
|
|
|
<type><use>texture[4]/type</use></type>
|
|
|
|
<image><use>texture[4]/image</use></image>
|
|
|
|
<filter><use>texture[4]/filter</use></filter>
|
2021-08-16 15:04:18 +00:00
|
|
|
<mag-filter><use>texture[0]/mag-filter</use></mag-filter>
|
2021-04-10 09:14:16 +00:00
|
|
|
<wrap-s><use>texture[4]/wrap-s</use></wrap-s>
|
|
|
|
<wrap-t><use>texture[4]/wrap-t</use></wrap-t>
|
2021-07-31 10:59:16 +00:00
|
|
|
</texture-unit>
|
2021-08-18 23:22:26 +00:00
|
|
|
<blend>0</blend>
|
|
|
|
<rendering-hint>opaque</rendering-hint>
|
2021-08-16 15:04:18 +00:00
|
|
|
<cull-face><use>cull-face</use></cull-face>
|
2021-04-10 09:14:16 +00:00
|
|
|
<program>
|
|
|
|
<vertex-shader>Shaders/HDR/geometry-pbr.vert</vertex-shader>
|
|
|
|
<fragment-shader>Shaders/HDR/geometry-pbr.frag</fragment-shader>
|
|
|
|
<fragment-shader>Shaders/HDR/gbuffer-include.frag</fragment-shader>
|
|
|
|
<attribute>
|
|
|
|
<name>tangent</name>
|
|
|
|
<index>6</index>
|
|
|
|
</attribute>
|
|
|
|
<attribute>
|
|
|
|
<name>binormal</name>
|
|
|
|
<index>7</index>
|
|
|
|
</attribute>
|
|
|
|
</program>
|
|
|
|
<uniform>
|
2021-07-31 10:59:16 +00:00
|
|
|
<name>base_color_tex</name>
|
2021-04-10 09:14:16 +00:00
|
|
|
<type>sampler-2d</type>
|
|
|
|
<value type="int">0</value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>normal_tex</name>
|
|
|
|
<type>sampler-2d</type>
|
|
|
|
<value type="int">1</value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
2021-08-16 15:04:18 +00:00
|
|
|
<name>metallic_roughness_tex</name>
|
2021-04-10 09:14:16 +00:00
|
|
|
<type>sampler-2d</type>
|
|
|
|
<value type="int">2</value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
2021-07-31 10:59:16 +00:00
|
|
|
<name>occlusion_tex</name>
|
2021-04-10 09:14:16 +00:00
|
|
|
<type>sampler-2d</type>
|
2021-08-16 15:04:18 +00:00
|
|
|
<value type="int">3</value>
|
2021-04-10 09:14:16 +00:00
|
|
|
</uniform>
|
2021-07-31 10:59:16 +00:00
|
|
|
<uniform>
|
|
|
|
<name>emissive_tex</name>
|
|
|
|
<type>sampler-2d</type>
|
2021-08-16 15:04:18 +00:00
|
|
|
<value type="int">4</value>
|
2021-07-31 10:59:16 +00:00
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>base_color_factor</name>
|
|
|
|
<type>float-vec4</type>
|
|
|
|
<value><use>base-color-factor</use></value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>metallic_factor</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value><use>metallic-factor</use></value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>roughness_factor</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value><use>roughness-factor</use></value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>emissive_factor</name>
|
|
|
|
<type>float-vec3</type>
|
|
|
|
<value><use>emissive-factor</use></value>
|
|
|
|
</uniform>
|
2021-08-16 15:04:18 +00:00
|
|
|
<uniform>
|
|
|
|
<name>flip_vertically</name>
|
|
|
|
<type>bool</type>
|
|
|
|
<value><use>flip-vertically</use></value>
|
|
|
|
</uniform>
|
2021-04-10 09:14:16 +00:00
|
|
|
</pass>
|
|
|
|
</technique>
|
|
|
|
</PropertyList>
|