Difference between revisions of "Get Altitude in Texture"
Line 7: | Line 7: | ||
<!-- imported from file: module_25.html--> | <!-- imported from file: module_25.html--> | ||
− | Provides the "Altitude | + | Provides the "Altitude in Texture" 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 in Texture provides the signed difference between [[Get Position in Texture]] and [[Get Position in Geometry]] in the direction of [[Get Normal in Geometry]]. For a planet this basically means the altitude of the current texture coordinates. |
Revision as of 23:56, 1 May 2011
Get Altitude in Texture
Provides the "Altitude in Texture" 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 in Texture provides the signed difference between Get Position in Texture and Get Position in Geometry in the direction of Get Normal in Geometry. For a planet this basically means the altitude of the current texture coordinates.