![]() |
XII Release 0.1.0
|
#include <DecalResource.h>
Public Attributes | |
| xiiHashedString | m_sDecalId |
| Unique identifier for the decal, used for lookup. | |
| xiiTexture2DResourceHandle | m_hAlbedo |
| Handle to the albedo texture for this decal. | |
| xiiTexture2DResourceHandle | m_hNormal |
| Handle to the normal texture for this decal. | |
| xiiTexture2DResourceHandle | m_hMaterial |
| Handle to the material texture for this decal, typically containing roughness, metallic and ambient occlusion packed together. | |
| xiiTexture2DResourceHandle | m_hEmissive |
| Handle to the emissive texture for this decal. | |
| xiiSizeU16 | m_Size = xiiSizeU16(256, 256) |
| Original decal dimensions in pixels. | |
| xiiUInt8 | m_uiPadding = 2U |
| Padding in pixels to add around this decal in the atlas to prevent bleeding. This is typically 2 pixels for bilinear filtering, but may need to be higher for mipmapping or if the source textures have alpha coverage that extends to the edges. | |
| xiiUInt8 | m_uiPriority = 128U |
| Authored priority metadata. Atlas loading never repacks entries. | |
| xiiBitflags< xiiDecalChannelMask > | m_ChannelMask |
| G-Buffer channels written by this decal. | |
| xiiVec4 | m_vUVRect = xiiVec4(0.0f, 0.0f, 1.0f, 1.0f) |
| UV rectangle in the atlas where this decal is located, in normalized coordinates. xy = UV minimum, zw = UV size inside the packed atlas. | |
| xiiVec4 | m_vTextureMetrics = xiiVec4(1.0f / 256.0f, 1.0f / 256.0f, 256.0f, 256.0f) |
| Texture metrics for this decal, used for sampling and mipmap calculations. xy = texel size (1 / original texture size), zw = packed pixel size (original texture size + padding, in pixels). | |
One packed decal and its metadata. Source handles are optional provenance; they are not loaded or sampled by the atlas resource.