Texture grayscale

Converts a texture to grayscale by averaging the RGB values and copying the alpha.

Texture grayscale in Lightact's Layer Layouts visual scripting system.
Screenshot of Texture grayscale node.

Inputs

TypeNameDescription
TextureGl texture element
InputA gl::Texture2dRef data structure

Outputs

TypeNameDescription
TextureGl texture element
OutputReturns a gl::Texture2dRef data structure