Difference between revisions of "Get Final Opacity"

From Terragen Documentation from Planetside Software
Jump to: navigation, search
Line 13: Line 13:
The Input connection is not used by this node.
The Input connection is not used by this node.
[[Category:Get| ]]

Revision as of 18:33, 1 June 2011

Get Final Opacity

Provides the "Final Opacity" of the current Render State. The Render State is affected by any shaders which were called before this function is called, among other things.

Final Opacity is the fractional amount by which an object visually occludes the light from another object. It also affects how much light passes through an object when calculating shadows (if they are enabled). Opacity = 1 - Transparency. Note that Final Opacity may be different from Final Alpha to allow special effects when compositing the rendered image over another background.

In Terragen, alphas and opacities have 3 channels to represent potentially different opacities in the Red, Green and Blue channels of an image. This is necessary to correctly composite media with wavelength-dependent scattering or absorption, such as planetary atmospheres and coloured glass.

Although Final Opacity is defined to include atmosphere contributions if they have been applied, in practice Get Final Opacity will always provide the opacity of the surface prior to atmosphere due to the places where you can use it. Future changes to the renderer may expose contexts where functions can be used after atmosphere.

The Input connection is not used by this node.

A single object or device in the node network which generates or modifies data and may accept input data or create output data or both, depending on its function. Nodes usually have their own settings which control the data they create or how they modify data passing through them. Nodes are connected together in a network to perform work in a network-based user interface. In Terragen 2 nodes are connected together to describe a scene.