vkmEngine 1.0.0
A C++ game engine · vkmengine.com
Loading...
Searching...
No Matches
decal.h
1#pragma once
2
3#include "core/reflect.h"
4
5#include "resource/asset/material_asset.h"
6
7namespace Vkm::Engine {
8
16struct Decal {
17 MaterialHandle material;
19 float angleFade = 0.5f;
20 float opacity = 1.0f;
21
25 bool enabled = true;
26};
27
28} // namespace Vkm::Engine
29
30VKM_REFLECT_BEGIN(::Vkm::Engine::Decal)
31 VKM_F(material)
32 VKM_F(angleFade)
33 VKM_F(opacity)
34 VKM_F(enabled)
35VKM_REFLECT_END()
A projected decal - bullet holes, blood, scorch marks.
Definition decal.h:16
bool enabled
Whether this projector is in the frame at all; off costs nothing.
Definition decal.h:25
float angleFade
Fade width as the surface turns away from the projector (0 = hard cut).
Definition decal.h:19
MaterialHandle material
Definition decal.h:17