Get Normal in Texture: Difference between revisions
| Line 4: | Line 4: | ||
[[Image:drex_module_37_image_0.png|485pxpx|Get Normal in Texture]] | [[Image:drex_module_37_image_0.png|485pxpx|Get Normal in Texture]] | ||
Provides the "Normal In Texture" of the | Provides the "Normal 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. | ||
When shading or displacing a surface, Normal in Texture provides a surface normal at the current point. On imported objects such as OBJs or TGOs, these coordinates are often provided by the object file and (optionally) interpolated to give a smooth surface for displacement and shading. On terrains these coordinates are initially set to [[Get Normal]] on the flat planet from which the terrain was displaced, but may be updated by [[Compute Terrain]] or [[Compute Normal]] nodes to provide a more detailed representation of the surface relief. | |||
When sampling an atmosphere shader, Normal in Texture is usually set to the local "Up" vector with respect to the planet to which the atmosphere shader is attached. | |||
'''For most shading and displacement it is better to use [[Get Normal]] instead.''' | |||
The Input connection is not used by this node. | |||
__NOTOC__ | __NOTOC__ | ||
<!-- imported from file: module_37.html--> | <!-- imported from file: module_37.html--> | ||
Revision as of 05:52, 2 May 2011
Get Normal in Texture
Provides the "Normal 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.
When shading or displacing a surface, Normal in Texture provides a surface normal at the current point. On imported objects such as OBJs or TGOs, these coordinates are often provided by the object file and (optionally) interpolated to give a smooth surface for displacement and shading. On terrains these coordinates are initially set to Get Normal on the flat planet from which the terrain was displaced, but may be updated by Compute Terrain or Compute Normal nodes to provide a more detailed representation of the surface relief.
When sampling an atmosphere shader, Normal in Texture is usually set to the local "Up" vector with respect to the planet to which the atmosphere shader is attached.
For most shading and displacement it is better to use Get Normal instead.
The Input connection is not used by this node.
