Power Scalar

From Terragen Documentation from Planetside Software
Jump to: navigation, search


Power Scalar


Overview[edit]

The Power family of nodes output the Main Input value raised to the power of the Input 2 value:


Output = Input to the power of Input 2


For colours the calculation is done on a component-wise basis, for example:


Output.red = Input.red to the power of Input 2.red
Output.green = Input.green to the power of Input 2.green
Output.blue = Input.blue to the power of Input 2.blue


Settings:

  • Name: This setting allows you to apply a descriptive name to the node, which can be helpful when using multiple Power scalar nodes in a project.
  • Enable: When checked, the node is active, and when unchecked the node is ignored.
  • Input 2: The shader or function nodes assigned to this setting provide the exponent value, that is,the number of times the base value (Main input) is multiplied by itself.



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.

A scalar is a single number. 1, 200.45, -45, -0.2 are all examples of scalar values.

A shader is a program or set of instructions used in 3D computer graphics to determine the final surface properties of an object or image. This can include arbitrarily complex descriptions of light absorption and diffusion, texture mapping, reflection and refraction, shadowing, surface displacement and post-processing effects. In Terragen 2 shaders are used to construct and modify almost every element of a scene.