GREM 3.12.0
Game/Rendering Engine Modules for C++
Loading...
Searching...
No Matches
grem::graphics::DecalMaterialOptions Struct Reference

Configuration options for a decal material. More...

#include <GREM/graphics_3d/Decals3D.hpp>

Public Attributes

resource::ImageView baseColorMapImage {}
 Base color map image of the decal material, or an empty image view to use a fully white texture.
resource::ImageView normalMapImage {}
 Normal map image of the decal material, or an empty image view to use a flat normal texture.
resource::ImageView occlusionRoughnessMetallicMapImage {}
 Occlusion-roughness-metallic map image of the decal material, or an empty image view to use a fully white texture.
resource::ImageView emissiveMapImage {}
 Emissive map image of the decal material, or an empty image view to use a fully white texture.
vec4 baseColorFactor {1.0f, 1.0f, 1.0f, 1.0f}
 Base color factor of the decal material.
float occlusionStrength = 1.0f
 Occlusion strength of the decal material.
float roughnessFactor = 1.0f
 Roughness factor of the decal material.
float metallicFactor = 1.0f
 Metallic factor of the decal material.
float normalScale = 1.0f
 Normal scale of the decal material.
vec3 emissiveFactor {0.0f, 0.0f, 0.0f}
 Emissive factor of the decal material.
bool convertToPremultipliedAlpha = true
 Convert the decal base color map image from straight to pre-multiplied alpha.

Detailed Description

Configuration options for a decal material.

Member Data Documentation

◆ baseColorMapImage

resource::ImageView grem::graphics::DecalMaterialOptions::baseColorMapImage {}

Base color map image of the decal material, or an empty image view to use a fully white texture.

Must reference a valid sRGB-encoded image whose format can be used as a source image format for TextureFormat::R8G8B8A8_SRGB if non-empty.

◆ normalMapImage

resource::ImageView grem::graphics::DecalMaterialOptions::normalMapImage {}

Normal map image of the decal material, or an empty image view to use a flat normal texture.

Must reference a valid linearly encoded image whose format can be used as a source image format for TextureFormat::R8G8B8A8_UNORM if non-empty.

◆ occlusionRoughnessMetallicMapImage

resource::ImageView grem::graphics::DecalMaterialOptions::occlusionRoughnessMetallicMapImage {}

Occlusion-roughness-metallic map image of the decal material, or an empty image view to use a fully white texture.

Must reference a valid linearly encoded image whose format can be used as a source image format for TextureFormat::R8G8B8A8_UNORM if non-empty.

◆ emissiveMapImage

resource::ImageView grem::graphics::DecalMaterialOptions::emissiveMapImage {}

Emissive map image of the decal material, or an empty image view to use a fully white texture.

Must reference a valid sRGB-encoded image whose format can be used as a source image format for TextureFormat::R8G8B8A8_SRGB if non-empty.

◆ baseColorFactor

vec4 grem::graphics::DecalMaterialOptions::baseColorFactor {1.0f, 1.0f, 1.0f, 1.0f}

Base color factor of the decal material.

◆ occlusionStrength

float grem::graphics::DecalMaterialOptions::occlusionStrength = 1.0f

Occlusion strength of the decal material.

◆ roughnessFactor

float grem::graphics::DecalMaterialOptions::roughnessFactor = 1.0f

Roughness factor of the decal material.

◆ metallicFactor

float grem::graphics::DecalMaterialOptions::metallicFactor = 1.0f

Metallic factor of the decal material.

◆ normalScale

float grem::graphics::DecalMaterialOptions::normalScale = 1.0f

Normal scale of the decal material.

◆ emissiveFactor

vec3 grem::graphics::DecalMaterialOptions::emissiveFactor {0.0f, 0.0f, 0.0f}

Emissive factor of the decal material.

◆ convertToPremultipliedAlpha

bool grem::graphics::DecalMaterialOptions::convertToPremultipliedAlpha = true

Convert the decal base color map image from straight to pre-multiplied alpha.

Note
Only applies to images in raw RGBA formats.

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