group2 0.1.0
CSE 125 Group 2
Loading...
Searching...
No Matches
DecalInstance Struct Reference

World-space decal instance (bullet hole, scorch mark). More...

#include <ParticleTypes.hpp>

Public Attributes

glm::vec3 pos
 World-space centre.
 
float size
 Half-extent in world units (~4).
 
glm::vec3 right
 World-space tangent (derived from hit normal).
 
float _p0
 
glm::vec3 up
 World-space bitangent.
 
float opacity
 Fades 1.0→0.0 over ~15 s.
 
glm::vec2 uvMin
 Atlas UV min.
 
glm::vec2 uvMax
 Atlas UV max.
 

Detailed Description

World-space decal instance (bullet hole, scorch mark).

Member Data Documentation

◆ _p0

float DecalInstance::_p0

◆ opacity

float DecalInstance::opacity

Fades 1.0→0.0 over ~15 s.

◆ pos

glm::vec3 DecalInstance::pos

World-space centre.

◆ right

glm::vec3 DecalInstance::right

World-space tangent (derived from hit normal).

◆ size

float DecalInstance::size

Half-extent in world units (~4).

◆ up

glm::vec3 DecalInstance::up

World-space bitangent.

◆ uvMax

glm::vec2 DecalInstance::uvMax

Atlas UV max.

◆ uvMin

glm::vec2 DecalInstance::uvMin

Atlas UV min.


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