![]() |
vkmEngine 1.0.0
A C++ game engine · vkmengine.com
|
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. | |
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.
| MaterialHandle Vkm::Engine::Decal::material |
Its albedo (with alpha) is projected.