Get Altitude: Difference between revisions

From Terragen Documentation from Planetside Software
Jump to navigation Jump to search
Line 4: Line 4:
[[Image:drex_module_24_image_0.png|485pxpx|Get Altitude]]
[[Image:drex_module_24_image_0.png|485pxpx|Get Altitude]]


Provides the "Altitude" of the current [[Render State]]. The [[Render State]] is affected by any shaders which were called before this function is called, among other things. Get Altitude provides the signed difference between [[Get Position]] and [[Get Position in Geometry]] in the direction of [[Get Normal in Geometry]]. For a planet this basically means the altitude of the current point being rendered. Refer to [[Get Position]] for more information.
Provides the "Altitude" of the current [[Render State]]. The [[Render State]] is affected by any shaders which were called before this function is called, among other things. Get Altitude provides the signed difference between [[Get Position]] and [[Get Position in Geometry]] in the direction of [[Get Normal in Geometry]]. For a planet this basically means the altitude of the current point being rendered. Position is modified by displacement shaders, therefore so is altitude. Refer to [[Get Position]] for more information.


The Input connection is not used by this node.
The Input connection is not used by this node.

Revision as of 00:23, 2 May 2011

Get Altitude

Get Altitude

Provides the "Altitude" of the current Render State. The Render State is affected by any shaders which were called before this function is called, among other things. Get Altitude provides the signed difference between Get Position and Get Position in Geometry in the direction of Get Normal in Geometry. For a planet this basically means the altitude of the current point being rendered. Position is modified by displacement shaders, therefore so is altitude. Refer to Get Position for more information.

The Input connection is not used by this node.