XII Release 0.1.0
Loading...
Searching...
No Matches
xiiDecalChannelMask Struct Reference

Copyright (c) Theophilus Eriata. All Rights Reserved. More...

#include <DecalResource.h>

Classes

struct  Bits

Public Types

enum  Enum : StorageType {
  None = 0U , Albedo = XII_BIT(0) , Normal = XII_BIT(1) , Material = XII_BIT(2) ,
  Emissive = XII_BIT(3) , All = Albedo | Normal | Material | Emissive , Default = Albedo | Normal | Material
}
using StorageType = xiiUInt16

Detailed Description

Copyright (c) Theophilus Eriata. All Rights Reserved.

G-Buffer channels a decal may write.

Member Enumeration Documentation

◆ Enum

enum xiiDecalChannelMask::Enum : StorageType
Enumerator
None 

This decal does not write to any G-Buffer channel, it only has an emissive contribution.

Albedo 

This decal writes to the albedo channel, which typically contains the base color of the surface.

Normal 

This decal writes to the normal channel, which typically contains the surface normal in tangent space.

Material 

This decal writes to the material channel, which typically contains roughness, metallic and ambient occlusion packed together.

Emissive 

This decal writes to the emissive channel, which typically contains the emissive color of the surface.

All 

This decal writes to all G-Buffer channels.

Default 

By default, decals write to all channels except emissive, as most decals do not have an emissive contribution.


The documentation for this struct was generated from the following file:
  • /home/runner/work/XII/XII/Source/Engine/GraphicsCore/Decals/DecalResource.h