Changes

Jump to: navigation, search

Compositor

425 bytes removed, 14:33, 8 November 2019
no edit summary
== 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}}). See existing pipelines in {{fgdata file|Compositor}} for practical examples on how to use these parameters.
=== Buffers ===
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;
! scope="col" | Parameter Name
| <tt>lequal</tt>
|
|}
|}
235
edits

Navigation menu