Color2scalar
 
 
 

DEPRECATED. This shader is unsupported, but it may still get installed with Softimage to provide compatibility with older scenes that use it. It is recommended that you replace unsupported shaders in your scenes with equivalent shaders from the current Softimage shader library.

| Render Tree Usage

Shader Type: Conversion (Tool)

Output: Scalar value

NoteThis shader is no longer supported. Scenes using it will still load, but it is recommended that you use the newer Color To Scalar shader.

Converts a color (RGB or RGBA) to a single channel.

When alpha is off: (R+G+B)/3

When alpha is on: (R+G+B+A)/4

Name

The shader's name. Enter any name you like, or leave the default.

Input

Specifies the input color to be converted to a scalar value (value between 0 and 1).

Alpha

Includes the alpha channel in the conversion.

Render Tree Usage

This shader is simply placed between a color output and a scalar input in order for the two values to connect.