forked from themrdemonized/xray-monolith
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFLOD.h
More file actions
42 lines (38 loc) · 678 Bytes
/
FLOD.h
File metadata and controls
42 lines (38 loc) · 678 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#pragma once
#include "fhierrarhyvisual.h"
class FLOD : public FHierrarhyVisual
{
typedef FHierrarhyVisual inherited;
public:
struct _vertex
{
Fvector v;
Fvector2 t;
u32 c_rgb_hemi; // rgb,hemi
u8 c_sun;
};
struct _face
{
_vertex v[4];
Fvector N;
};
struct _hw
{
Fvector p0;
Fvector p1;
Fvector n0;
Fvector n1;
u32 sun_af;
Fvector2 t0;
Fvector2 t1;
u32 rgbh0;
u32 rgbh1;
};
ref_geom geom;
_face facets [8];
float lod_factor;
public:
virtual void Render(float LOD); // LOD - Level Of Detail [0.0f - min, 1.0f - max], Ignored
virtual void Load(LPCSTR N, IReader* data, u32 dwFlags);
virtual void Copy(dxRender_Visual* pFrom);
};