mirror of
https://github.com/jmarshall23/DoomRTX.git
synced 2026-08-17 02:58:46 +02:00
Added screensapce decal system and stamp placement system in Radiant.
This commit is contained in:
@@ -579,6 +579,18 @@ typedef struct modelTrace_s {
|
||||
#endif
|
||||
} modelTrace_t;
|
||||
|
||||
typedef struct renderWorldDecal_s {
|
||||
idStr material;
|
||||
idVec3 origin;
|
||||
idVec3 normal;
|
||||
idVec3 axisU;
|
||||
idVec3 axisV;
|
||||
float size;
|
||||
float depth;
|
||||
float opacity;
|
||||
idVec4 color;
|
||||
} renderWorldDecal_t;
|
||||
|
||||
|
||||
#ifdef QUAKE4
|
||||
// RAVEN BEGIN
|
||||
@@ -817,6 +829,14 @@ public:
|
||||
// Traces vs the world model bsp tree.
|
||||
virtual bool FastWorldTrace(modelTrace_t& trace, const idVec3& start, const idVec3& end) const = 0;
|
||||
|
||||
// Screen-space world decals consumed by the path tracer.
|
||||
virtual void ClearWorldDecals() = 0;
|
||||
virtual int AddWorldDecal(const renderWorldDecal_t& decal) = 0;
|
||||
virtual void RemoveWorldDecal(int decalIndex) = 0;
|
||||
virtual int NumWorldDecals() const = 0;
|
||||
virtual const renderWorldDecal_t* GetWorldDecal(int decalIndex) const = 0;
|
||||
virtual void SubmitWorldDecalsToScreenSpace() const = 0;
|
||||
|
||||
//-------------- Demo Control -----------------
|
||||
|
||||
// Writes a loadmap command to the demo, and clears archive counters.
|
||||
|
||||
Reference in New Issue
Block a user