Compositor: Difference between revisions

Jump to navigation Jump to search
no edit summary
mNo edit summary
No edit summary
Line 218: Line 218:
==== Rendering correct depth ====
==== Rendering correct depth ====


The ALS pipeline uses a logarithmic depth buffer. This is accomplished by writing to <tt>gl_FragDepth</tt> in the fragment shader or by modifying <tt>gl_Position.z</tt> in the vertex shader. The 2nd option is faster but doesn't work for polygons that intersect of the near plane of the camera (e.g. terrain), so you should use it by default unless visual bugs appear.
The ALS pipeline uses a logarithmic depth buffer. This is accomplished by writing to <tt>gl_FragDepth</tt> in the fragment shader or by modifying <tt>gl_Position.z</tt> in the vertex shader. The second option is faster but doesn't work for polygons that intersect the near plane of the camera (e.g. terrain), so you should use it by default unless visual bugs appear.


* '''1st option'''.
* '''1st option'''
Add the following to the vertex shader:
Add the following to the vertex shader:
<syntaxhighlight lang="glsl">
<syntaxhighlight lang="glsl">
Line 229: Line 229:
</syntaxhighlight>
</syntaxhighlight>


* '''2nd option'''.
* '''2nd option'''
Add the following to the vertex shader:
Add the following to the vertex shader:
<syntaxhighlight lang="glsl">
<syntaxhighlight lang="glsl">
Line 246: Line 246:
</syntaxhighlight>
</syntaxhighlight>


== Technical notes of each pipeline ==
== Pipeline technical notes ==


=== Default (Low-Spec) ===
=== Default (Low-Spec) ===
Line 255: Line 255:


=== ALS ===
=== ALS ===
{{See also|ALS technical notes}}


The ALS pipeline tries to bring multipass rendering to the current ALS framework, effectively combining the best from ALS and Project Rembrandt.
The ALS pipeline tries to bring multipass rendering to the current ALS framework, effectively combining the best from ALS and Project Rembrandt.
342

edits

Navigation menu