Get Normal in Texture: Difference between revisions
Conformed layout & updated GUI image. |
|||
| (4 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
<div style="float:right; border-style:solid; padding:20px"><categorytree mode=pages hideroot=off>Get</categorytree></div> | |||
= | |||
[[ | [[File:GetNormalInTexture_00_GUI.png|none|470px|Get Normal in Texture]] | ||
== Overview == | |||
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. | 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. | ||
The input connection is not used by this node (consistent with all [[:Get|Get nodes]]). | |||
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 normals 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 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 normals 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. | ||
| Line 10: | Line 13: | ||
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. | 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. | ||
Normal in Texture often provides a value that is consistent between displacement and colour contexts, whereas [[Get Normal]] does not always provide that consistency. However, for some shading uses it may be better to use [[Get Normal]] because it provides more detail for colour and lighting. | |||
'''Settings:''' | |||
*'''Name:''' This setting allows you to apply a descriptive name to the node, which can be helpful when using multiple Get Normal in Texture nodes in a project. | |||
*'''Enable:''' When checked, the node is active, and when unchecked the node is ignored. | |||
<br /n> | |||
[[Category:Get]] | |||
Latest revision as of 18:38, 22 April 2022

Overview
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.
The input connection is not used by this node (consistent with all Get nodes).
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 normals 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.
Normal in Texture often provides a value that is consistent between displacement and colour contexts, whereas Get Normal does not always provide that consistency. However, for some shading uses it may be better to use Get Normal because it provides more detail for colour and lighting.
Settings:
- Name: This setting allows you to apply a descriptive name to the node, which can be helpful when using multiple Get Normal in Texture nodes in a project.
- Enable: When checked, the node is active, and when unchecked the node is ignored.