Mercurial > mm7
comparison Engine/Graphics/LightmapBuilder.h @ 2532:9ec6b8be16fe
Mobile light
author | Ritor1 |
---|---|
date | Mon, 19 Jan 2015 22:39:03 +0600 |
parents | f6de3e15d4a5 |
children | b8a56afc6ba1 |
comparison
equal
deleted
inserted
replaced
2531:f6de3e15d4a5 | 2532:9ec6b8be16fe |
---|---|
5 struct LightsStack_StationaryLight_; | 5 struct LightsStack_StationaryLight_; |
6 struct LightsStack_MobileLight_; | 6 struct LightsStack_MobileLight_; |
7 | 7 |
8 /* 115 */ | 8 /* 115 */ |
9 #pragma pack(push, 1) | 9 #pragma pack(push, 1) |
10 struct Lightmap | 10 struct Lightmap //карта света, текстура для наложения теней |
11 { | 11 { |
12 Lightmap(); | 12 Lightmap(); |
13 virtual ~Lightmap() {} | 13 virtual ~Lightmap() {} |
14 | 14 |
15 //void ( ***vdestructor_ptr)(Lightmap *, bool); | 15 //void ( ***vdestructor_ptr)(Lightmap *, bool); |
16 unsigned int uNumVertices; | 16 signed int NumVertices; |
17 RenderVertexSoft pVertices[64]; | 17 RenderVertexSoft pVertices[64]; |
18 __int16 field_C08; | 18 __int16 position_x; //позиция источника света |
19 __int16 field_C0A; | 19 __int16 position_y; |
20 __int16 field_C0C; | 20 __int16 position_z; |
21 __int16 field_C0E; | 21 __int16 field_C0E; //нигде не используется |
22 unsigned int uColorMask; | 22 unsigned int uColorMask; |
23 float fBrightness; | 23 float fBrightness; //яркость |
24 int field_C18; | 24 int field_C18; //нигде не используется |
25 }; | 25 }; |
26 #pragma pack(pop) | 26 #pragma pack(pop) |
27 | 27 |
28 | 28 |
29 /* 114 */ | 29 /* 114 */ |
33 public: | 33 public: |
34 LightmapBuilder(); | 34 LightmapBuilder(); |
35 virtual ~LightmapBuilder() //----- (0045BBAA) | 35 virtual ~LightmapBuilder() //----- (0045BBAA) |
36 {} | 36 {} |
37 | 37 |
38 void Draw_183808_Lightmaps(); | 38 void Draw_183808_Lightmaps(); //используется для мобильного света |
39 //bool DrawLightmap(Lightmap *a1, Vec3_float_ *pColorMult, float z_bias); | 39 //bool DrawLightmap(Lightmap *a1, Vec3_float_ *pColorMult, float z_bias); |
40 bool DoDraw_183808_Lightmaps(float a2); | 40 bool DoDraw_183808_Lightmaps(float a2); //используется для мобильного света |
41 bool DrawLightmaps(int *indices = nullptr); | 41 bool DrawLightmaps(int *indices = nullptr); |
42 void DrawLightmapsType(int type); | 42 void DrawLightmapsType(int type); |
43 bool DrawDebugOutlines(char bit_one_for_list1__bit_two_for_list2); | 43 bool DrawDebugOutlines(char bit_one_for_list1__bit_two_for_list2); |
44 double _45D643_sw(struct Edge *a1, float a2); | 44 double _45D643_sw(struct Edge *a1, float a2); |
45 //int _45D426_sw(struct Span *a1, struct Edge **a2, unsigned int a3, struct Edge *a4, int a5); | 45 //int _45D426_sw(struct Span *a1, struct Edge **a2, unsigned int a3, struct Edge *a4, int a5); |