Compositor: Difference between revisions

Jump to navigation Jump to search
m
no edit summary
mNo edit summary
mNo 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 very large polygons (like the 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 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.


* '''1st option'''.
* '''1st option'''.
343

edits

Navigation menu