vkmEngine 1.0.0
A C++ game engine · vkmengine.com
Loading...
Searching...
No Matches
Vkm::Engine::Decal Struct Reference

A projected decal - bullet holes, blood, scorch marks. More...

#include <decal.h>

Public Attributes

MaterialHandle material
float angleFade = 0.5f
 Fade width as the surface turns away from the projector (0 = hard cut).
bool enabled = true
 Whether this projector is in the frame at all; off costs nothing.

Detailed Description

A projected decal - bullet holes, blood, scorch marks.

Projects its material's albedo along the entity's forward onto geometry inside the Transform's unit cube. Surfaces facing away fade out, so a decal never smears across a perpendicular wall.

Member Data Documentation

◆ material

MaterialHandle Vkm::Engine::Decal::material

Its albedo (with alpha) is projected.


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