Difference between revisions of "Constant Shader"

From Terragen Documentation from Planetside Software
Jump to: navigation, search
(jrfconvert import)
 
(Added descriptions and example images for all settings.)
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
[[Category:IMPORT]]
+
[[File:ConstantShdr_00_GUI.png|none|470px|Constant Shader]]
='''Constant Shader'''=
 
  
[[Image:drex_module_143_image_0.png|485pxpx|Constant Shader]]
+
 
__NOTOC__
+
== Overview ==
<!-- imported from file: module_143.html-->
+
The Constant Shader provides a specific colour and alpha as output.
 +
 
 +
 
 +
'''Settings: '''
 +
 
 +
* '''Enable: '''  When checked, the node is active and the Colour and Alpha settings will affect the surface. When unchecked, the node is ignored allowing the upstream shader nodes determine the colour of the surface.
 +
<ul>
 +
{|
 +
|-
 +
| [[File:ConstantShdr_01_EnableOff.jpg|none|400px|Enable unchecked.]] || [[File:ConstantShdr_02_EnableOn.jpg|none|400px|Enable checked.]]
 +
|}
 +
</ul>
 +
 
 +
 
 +
* ''' Colour: ''' This setting defines the colour value of the surface.
 +
<ul>
 +
{|
 +
|-
 +
| [[File:ConstantShdr_03_ColourR127G0B64.jpg|none|266px|Colour = sRGB 127,0,64]] || [[File:ConstantShdr_04_ColourR64G127B64.jpg|none|266px|Colour = sRGB 64,127,64]] || [[File:ConstantShdr_05_ColourR94G179B198.jpg|none|266px|Colour = sRGB 94,179,198]]
 +
|}
 +
</ul>
 +
 
 +
 
 +
* '''Alpha: ''' This setting defines the surface’s alpha channel density value.  Note that by default, Terragen also stores atmosphere values in the alpha channel. 
 +
<ul>
 +
{|
 +
|-
 +
| [[File:ConstantShdr_06_Alpha0.jpg|none|266px|Alpha = 0]] || [[File:ConstantShdr_07_Alpha0p5.jpg|none|266px|Alpha = 0.5]] || [[File:ConstantShdr_08_Alpha1.jpg|none|266px|Alpha = 1]]
 +
|}
 +
</ul>
 +
 
 +
 
 +
<br />
 +
[[Category:Surface Shader]]

Latest revision as of 19:43, 23 February 2021

Constant Shader


Overview[edit]

The Constant Shader provides a specific colour and alpha as output.


Settings:

  • Enable: When checked, the node is active and the Colour and Alpha settings will affect the surface. When unchecked, the node is ignored allowing the upstream shader nodes determine the colour of the surface.
    Enable unchecked.
    Enable checked.


  • Colour: This setting defines the colour value of the surface.
    Colour = sRGB 127,0,64
    Colour = sRGB 64,127,64
    Colour = sRGB 94,179,198


  • Alpha: This setting defines the surface’s alpha channel density value. Note that by default, Terragen also stores atmosphere values in the alpha channel.
    Alpha = 0
    Alpha = 0.5
    Alpha = 1



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.