Effect framework: Difference between revisions

Jump to navigation Jump to search
no edit summary
m (tweak the scheme doc)
No edit summary
Line 1: Line 1:
{{forum|47|Effects & Shaders}}
{{forum|47|Effects & Shaders}}
{{Rendering}}
{{Rendering}}
The '''effect framework''' as per version 2020.1
The '''Effect framework''' as per FlightGear version 2020.3


Effects describe the graphical appearance of 3D objects and scenery in
Effects describe the graphical appearance of 3D objects and scenery in
Line 186: Line 186:


==== scheme ====
==== scheme ====
Used by the [[Compositor]] to choose which implementation of an Effect to render. For example, if a Compositor scene pass specifies the <code>test-scheme</code> scheme, all techniques that use <code>test-scheme</code> will be used to render the pass. If an Effect doesn't contain a technique that implements this scheme, the object will be ignored and not rendered on that pass. Techniques with no scheme are considered ''default'' and will be used by scene passes when no specific scheme has been provided.
Used by the [[Compositor]] to choose which implementation of an Effect to render. For example, if a Compositor scene pass specifies the <code>test-scheme</code> scheme, all techniques that use <code>test-scheme</code> will be used to render the pass. If an Effect doesn't contain a technique that implements this scheme, the object will be ignored and not rendered on that pass. Techniques with no scheme are considered ''default'' and will be used by scene passes when no explicit scheme has been provided.
 
==== predicate ====
==== predicate ====
A technique can contain a predicate that describes the OpenGL
A technique can contain a predicate that describes the OpenGL
Line 483: Line 484:


default = inherit renderbin details from parent node
default = inherit renderbin details from parent node
===== depth =====
* function: Specifies the depth comparison function. Equivalent to [https://registry.khronos.org/OpenGL-Refpages/gl4/html/glDepthFunc.xhtml <tt>glDepthFunc</tt>].
* near, far: Specify the mapping of depth values from normalized device coordinates to window coordinates. Equivalent to [https://registry.khronos.org/OpenGL-Refpages/gl4/html/glDepthRange.xhtml <tt>glDepthRange</tt>]
* write-mask: Whether to write to the depth buffer or not.
* enabled: Whether depth testing is enabled or not.


===== program =====
===== program =====
343

edits

Navigation menu