Compositor: Difference between revisions

425 bytes removed ,  8 November 2019
no edit summary
No edit summary
No edit summary
Line 217: Line 217:
== Creating a custom rendering pipeline ==
== Creating a custom rendering pipeline ==


Since the Compositor is completely data-driven, new rendering pipelines can be created by writing a custom XML pipeline definition. This section tries to document most of the available parameters, but the best and most up-to-date resource is the Compositor parsing code in SimGear ({{simgear file|simgear/scene/viewer}}).
Since the Compositor is completely data-driven, new rendering pipelines can be created by writing a custom XML pipeline definition. This section tries to document most of the available parameters, but the best and most up-to-date resource is the Compositor parsing code in SimGear ({{simgear file|simgear/scene/viewer}}). See existing pipelines in {{fgdata file|Compositor}} for practical examples on how to use these parameters.


=== Buffers ===
=== Buffers ===
Line 223: Line 223:
A buffer represents a texture or, more generically, a region of GPU memory.
A buffer represents a texture or, more generically, a region of GPU memory.


{|cellpadding=10|
|valign=top style="width: 30%;"|
<syntaxhighlight lang="xml">
<buffer>
  <name>sun-shadowmap-atlas</name>
  <type>2d</type>
  <width>8192</width>
  <height>8192</height>
  <format>depth32f</format>
  <wrap-s>clamp-to-border</wrap-s>
  <wrap-t>clamp-to-border</wrap-t>
  <min-filter>linear</min-filter>
  <mag-filter>linear</mag-filter>
  <border-color type="vec4d">
    1.0 1.0 1.0 1.0
  </border-color>
  <shadow-comparison>true</shadow-comparison>
</buffer>
</syntaxhighlight>
|valign=top style="width: 70%;"|
{| class="wikitable" style="text-align: center; font-size: 85%; width: auto; table-layout: fixed;
{| class="wikitable" style="text-align: center; font-size: 85%; width: auto; table-layout: fixed;
! scope="col" | Parameter Name
! scope="col" | Parameter Name
Line 339: Line 319:
| <tt>lequal</tt>
| <tt>lequal</tt>
|
|
|}
|}
|}


342

edits