RAMSES Documentation  27.0.130
Information for RAMSES users and developers
Public Attributes | List of all members
ramses::TextureSwizzle Struct Reference

Information of how color channels of a texture are reordered or set to fixed value (one, zero). For example swizzling a texture with a red triangle (R:1, G:0, B:0, A:1) to TextureSwizzle(Blue, Green, Red, Alpha) would turn the triangle blue. The resulting color channels would be: (R:0, G:0, B:1, A:1). The red input color channel was basically rerouted to the blue output color channel. The color channels can also be fully overridden with a value of 0 (ETextureChannelColor::Zero) or 1 (ETextureChannelColor::One). More...

#include <TextureSwizzle.h>

Public Attributes

ETextureChannelColor channelRed = ETextureChannelColor::Red
 The red color channel of texture that can be swizzled to any of ETextureChannelColor. More...
 
ETextureChannelColor channelGreen = ETextureChannelColor::Green
 The green color channel of texture that can be swizzled to any of ETextureChannelColor. More...
 
ETextureChannelColor channelBlue = ETextureChannelColor::Blue
 The blue color channel of texture that can be swizzled to any of ETextureChannelColor. More...
 
ETextureChannelColor channelAlpha = ETextureChannelColor::Alpha
 The alpha color channel of texture that can be swizzled to any of ETextureChannelColor. More...
 

Detailed Description

Information of how color channels of a texture are reordered or set to fixed value (one, zero). For example swizzling a texture with a red triangle (R:1, G:0, B:0, A:1) to TextureSwizzle(Blue, Green, Red, Alpha) would turn the triangle blue. The resulting color channels would be: (R:0, G:0, B:1, A:1). The red input color channel was basically rerouted to the blue output color channel. The color channels can also be fully overridden with a value of 0 (ETextureChannelColor::Zero) or 1 (ETextureChannelColor::One).

Member Data Documentation

◆ channelAlpha

ETextureChannelColor ramses::TextureSwizzle::channelAlpha = ETextureChannelColor::Alpha

The alpha color channel of texture that can be swizzled to any of ETextureChannelColor.

◆ channelBlue

ETextureChannelColor ramses::TextureSwizzle::channelBlue = ETextureChannelColor::Blue

The blue color channel of texture that can be swizzled to any of ETextureChannelColor.

◆ channelGreen

ETextureChannelColor ramses::TextureSwizzle::channelGreen = ETextureChannelColor::Green

The green color channel of texture that can be swizzled to any of ETextureChannelColor.

◆ channelRed

ETextureChannelColor ramses::TextureSwizzle::channelRed = ETextureChannelColor::Red

The red color channel of texture that can be swizzled to any of ETextureChannelColor.


The documentation for this struct was generated from the following file: