First round of changes toward a programmable rendering pipeline.
Stages are predefined for now.
This commit is contained in:
parent
37df6a3ec1
commit
17740f9cf7
2 changed files with 109 additions and 0 deletions
108
Effects/default-pipeline.xml
Normal file
108
Effects/default-pipeline.xml
Normal file
|
@ -0,0 +1,108 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<PropertyList>
|
||||||
|
<buffer>
|
||||||
|
<name>depth</name>
|
||||||
|
<internal-format>depth-component32</internal-format>
|
||||||
|
<source-format>depth-component</source-format>
|
||||||
|
<source-type>float</source-type>
|
||||||
|
<width>screen</width>
|
||||||
|
<height>screen</height>
|
||||||
|
<scale-factor>1.0</scale-factor>
|
||||||
|
<wrap-mode>clamp-to-border</wrap-mode>
|
||||||
|
</buffer>
|
||||||
|
<buffer>
|
||||||
|
<name>normal</name>
|
||||||
|
<internal-format>rgba8</internal-format>
|
||||||
|
<source-format>rgba</source-format>
|
||||||
|
<source-type>unsigned-byte</source-type>
|
||||||
|
<width>screen</width>
|
||||||
|
<height>screen</height>
|
||||||
|
<scale-factor>1.0</scale-factor>
|
||||||
|
<wrap-mode>clamp-to-border</wrap-mode>
|
||||||
|
</buffer>
|
||||||
|
<buffer>
|
||||||
|
<name>shadow</name>
|
||||||
|
<internal-format>depth-component32</internal-format>
|
||||||
|
<source-format>depth-component</source-format>
|
||||||
|
<source-type>float</source-type>
|
||||||
|
<width><property>/sim/rendering/shadows/map-size</property></width>
|
||||||
|
<height><property>/sim/rendering/shadows/map-size</property></height>
|
||||||
|
<scale-factor>1.0</scale-factor>
|
||||||
|
<shadow-comparison>true</shadow-comparison>
|
||||||
|
<shadow-texture-mode>luminance</shadow-texture-mode>
|
||||||
|
<border-color type="vec4d">1.0 1.0 1.0 1.0</border-color>
|
||||||
|
<wrap-mode>clamp-to-border</wrap-mode>
|
||||||
|
</buffer>
|
||||||
|
<buffer>
|
||||||
|
<name>diffuse</name>
|
||||||
|
<internal-format>rgba8</internal-format>
|
||||||
|
<source-format>rgba</source-format>
|
||||||
|
<source-type>unsigned-byte</source-type>
|
||||||
|
<width>screen</width>
|
||||||
|
<height>screen</height>
|
||||||
|
<scale-factor>1.0</scale-factor>
|
||||||
|
<wrap-mode>clamp-to-border</wrap-mode>
|
||||||
|
</buffer>
|
||||||
|
<buffer>
|
||||||
|
<name>spec-emis</name>
|
||||||
|
<internal-format>rgba8</internal-format>
|
||||||
|
<source-format>rgba</source-format>
|
||||||
|
<source-type>unsigned-byte</source-type>
|
||||||
|
<width>screen</width>
|
||||||
|
<height>screen</height>
|
||||||
|
<scale-factor>1.0</scale-factor>
|
||||||
|
<wrap-mode>clamp-to-border</wrap-mode>
|
||||||
|
</buffer>
|
||||||
|
<buffer>
|
||||||
|
<name>lighting</name>
|
||||||
|
<internal-format>rgba8</internal-format>
|
||||||
|
<source-format>rgba</source-format>
|
||||||
|
<source-type>unsigned-byte</source-type>
|
||||||
|
<width>screen</width>
|
||||||
|
<height>screen</height>
|
||||||
|
<scale-factor>1.0</scale-factor>
|
||||||
|
<wrap-mode>clamp-to-border</wrap-mode>
|
||||||
|
</buffer>
|
||||||
|
|
||||||
|
<!-- STAGES -->
|
||||||
|
<stage>
|
||||||
|
<name>geometry</name>
|
||||||
|
<attachment>
|
||||||
|
<component>depth</component>
|
||||||
|
<buffer>depth</buffer>
|
||||||
|
</attachment>
|
||||||
|
<attachment>
|
||||||
|
<component>color0</component>
|
||||||
|
<buffer>normal</buffer>
|
||||||
|
</attachment>
|
||||||
|
<attachment>
|
||||||
|
<component>color1</component>
|
||||||
|
<buffer>diffuse</buffer>
|
||||||
|
</attachment>
|
||||||
|
<attachment>
|
||||||
|
<component>color2</component>
|
||||||
|
<buffer>spec-emis</buffer>
|
||||||
|
</attachment>
|
||||||
|
</stage>
|
||||||
|
<stage>
|
||||||
|
<name>shadow</name>
|
||||||
|
<attachment>
|
||||||
|
<component>depth</component>
|
||||||
|
<buffer>shadow</buffer>
|
||||||
|
</attachment>
|
||||||
|
</stage>
|
||||||
|
<stage>
|
||||||
|
<name>lighting</name>
|
||||||
|
<attachment>
|
||||||
|
<component>depth</component>
|
||||||
|
<buffer>depth</buffer>
|
||||||
|
</attachment>
|
||||||
|
<attachment>
|
||||||
|
<component>color0</component>
|
||||||
|
<buffer>lighting</buffer>
|
||||||
|
</attachment>
|
||||||
|
</stage>
|
||||||
|
<stage>
|
||||||
|
<name>display</name>
|
||||||
|
</stage>
|
||||||
|
</PropertyList>
|
|
@ -65,6 +65,7 @@ Started September 2000 by David Megginson, david@megginson.com
|
||||||
<rendering>
|
<rendering>
|
||||||
<materials-file>Materials/default/materials.xml</materials-file>
|
<materials-file>Materials/default/materials.xml</materials-file>
|
||||||
<rembrandt type="bool">false</rembrandt>
|
<rembrandt type="bool">false</rembrandt>
|
||||||
|
<renderer userarchive="y">default-pipeline</renderer>
|
||||||
<show-buffers type="bool" userarchive="y">true</show-buffers>
|
<show-buffers type="bool" userarchive="y">true</show-buffers>
|
||||||
<ambient-occlusion type="bool" userarchive="y">false</ambient-occlusion>
|
<ambient-occlusion type="bool" userarchive="y">false</ambient-occlusion>
|
||||||
<exposure type="float" userarchive="y">1.0</exposure>
|
<exposure type="float" userarchive="y">1.0</exposure>
|
||||||
|
|
Loading…
Reference in a new issue