vkmEngine 1.0.0
A C++ game engine · vkmengine.com
Loading...
Searching...
No Matches
decal_data.h
1#pragma once
2
3#include <glm/glm.hpp>
4
5#include "resource/asset/material_asset.h"
6
7namespace Vkm::Engine {
8
12struct DecalData {
13 glm::mat4 model;
14 glm::mat4 invModel;
15 MaterialHandle material;
16 float angleFade;
17 float opacity;
18};
19
20} // namespace Vkm::Engine
Flattened projected decal for the frame: the material lands on surfaces inside the box.
Definition decal_data.h:12
glm::mat4 model
World transform of a unit cube centred on the entity.
Definition decal_data.h:13
float angleFade
Fade width as the surface turns away from the projector.
Definition decal_data.h:16
glm::mat4 invModel
World -> decal local, for the box test + UVs.
Definition decal_data.h:14