comparison Engine/Graphics/LightmapBuilder.h @ 2562:b8a56afc6ba1

new var no_actors, lights_flag, debug_lights, StationaryLights and MobileLights
author Ritor1
date Sun, 17 May 2015 22:42:13 +0600
parents 9ec6b8be16fe
children f2f2595fe308
comparison
equal deleted inserted replaced
2561:98057834c9a0 2562:b8a56afc6ba1
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);
42 void DrawLightmapsType(int type); 42 void DrawLightmapsType(int type);
43 bool DrawDebugOutlines(char bit_one_for_list1__bit_two_for_list2); 43 void 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);
46 //bool _45D3C7_sw(struct Polygon *a1); 46 //bool _45D3C7_sw(struct Polygon *a1);
47 bool StackLight_TerrainFace(struct StationaryLight *pLight, struct Vec3_float_ *pNormal, float *a3, struct RenderVertexSoft *a1, unsigned int uStripType, int X, unsigned int *pSlot); 47 bool StackLight_TerrainFace(struct StationaryLight *pLight, struct Vec3_float_ *pNormal, float *a3, struct RenderVertexSoft *a1, unsigned int uStripType, int X, unsigned int *pSlot);
48 bool StackLights_TerrainFace(struct Vec3_float_ *pNormal, float *a3, struct RenderVertexSoft *a1, unsigned int uStripType, bool bLightBackfaces); 48 bool StackLights_TerrainFace(struct Vec3_float_ *pNormal, float *a3, struct RenderVertexSoft *a1, unsigned int uStripType, bool bLightBackfaces);
49 bool ApplyLight_ODM(struct StationaryLight *pLight, struct ODMFace *pFace, unsigned int *pSlot, char a4); 49 bool ApplyLight_ODM(struct StationaryLight *pLight, struct ODMFace *pFace, unsigned int *pSlot, char a4);
50 bool ApplyLights_OutdoorFace(struct ODMFace *pFace); 50 bool ApplyLights_OutdoorFace(struct ODMFace *pFace);
51 double _45CC0C_light(struct Vec3_float_ a1, float a2, float a3, struct Vec3_float_ *pNormal, float a5, int uLightType); 51 double _45CC0C_light(struct Vec3_float_ a1, float a2, float a3, struct Vec3_float_ *pNormal, float a5, int uLightType);
52 int _45CBD4(struct RenderVertexSoft *a2, int a3, int *a4, int *a5); 52 int _45CBD4(struct RenderVertexSoft *a2, int a3, int *a4, int *a5);
53 int _45CB89(struct RenderVertexSoft *a1, int a2); 53 int _45CB89(struct RenderVertexSoft *a1, int a2);
54 int _45CA88(struct stru320 *a2, struct RenderVertexSoft *a3, int a4, struct Vec3_float_ *pNormal); 54 int _45CA88(struct LightsData *a2, struct RenderVertexSoft *a3, int a4, struct Vec3_float_ *pNormal);
55 bool ApplyLight_BLV(struct StationaryLight *pLight, struct BLVFace *a2, unsigned int *pSlot, bool bLightBackfaces, char *a5); 55 bool ApplyLight_BLV(struct StationaryLight *pLight, struct BLVFace *a2, unsigned int *pSlot, bool bLightBackfaces, char *a5);
56 bool ApplyLights_IndoorFace(unsigned int uFaceID); 56 bool ApplyLights_IndoorFace(unsigned int uFaceID);
57 int _45C6D6(int a2, struct RenderVertexSoft *a3, Lightmap *pLightmap); 57 int _45C6D6(int a2, struct RenderVertexSoft *a3, Lightmap *pLightmap);
58 int _45C4B9(int a2, struct RenderVertexSoft *a3, Lightmap *pLightmap); 58 int _45C4B9(int a2, struct RenderVertexSoft *a3, Lightmap *pLightmap);
59 bool _45BE86_build_light_polygon(Vec3_int_ *pos, float radius, unsigned int uColorMask, float dot_dist, int uLightType, struct stru314 *a7, unsigned int uNumVertices, RenderVertexSoft *a9, char uClipFlag); 59 bool _45BE86_build_light_polygon(Vec3_int_ *pos, float radius, unsigned int uColorMask, float dot_dist, int uLightType, struct stru314 *a7, unsigned int uNumVertices, RenderVertexSoft *a9, char uClipFlag);
60 bool ApplyLights(struct stru320 *a2, struct stru154 *a3, unsigned int uNumVertices, struct RenderVertexSoft *a5, struct IndoorCameraD3D_Vec4 *, char uClipFlag); 60 bool ApplyLights(struct LightsData *a2, struct stru154 *a3, unsigned int uNumVertices, struct RenderVertexSoft *a5, struct IndoorCameraD3D_Vec4 *, char uClipFlag);
61 61
62 62
63 //void ( ***vdestructor_ptr)(LightmapBuilder *, bool); 63 //void ( ***vdestructor_ptr)(LightmapBuilder *, bool);
64 //std::vector<Lightmap> std__vector_000004; 64 //std::vector<Lightmap> std__vector_000004;
65 //std::vector<Lightmap> std__vector_183808; 65 //std::vector<Lightmap> std__vector_183808;
66 Lightmap std__vector_000004[512]; 66 Lightmap StationaryLights[512];//std__vector_000004
67 unsigned int std__vector_000004_size; 67 unsigned int StationaryLightsCount;//std__vector_000004_size
68 Lightmap std__vector_183808[768]; 68 Lightmap MobileLights[768];//std__vector_183808
69 unsigned int std__vector_183808_size; 69 unsigned int MobileLightsCount;//std__vector_183808_size
70 float flt_3C8C0C; 70 float light_length_x;
71 float flt_3C8C10; 71 float light_length_y;
72 float flt_3C8C14; 72 float light_length_z;
73 float flt_3C8C18; 73 float light_length_x2;
74 float flt_3C8C1C; 74 float light_length_y2;
75 float flt_3C8C20; 75 float light_length_z2;
76 float tex_light_radius;//flt_3C8C24; 76 float tex_light_radius;//flt_3C8C24;
77 float flt_3C8C28; 77 float flt_3C8C28;
78 float flt_3C8C2C_lightmaps_brightness; 78 float flt_3C8C2C_lightmaps_brightness;
79 float flt_3C8C30; 79 float light_radius;
80 RenderVertexSoft field_3C8C34[256]; 80 RenderVertexSoft field_3C8C34[256];
81 int uFlags; 81 int uFlags;
82 }; 82 };
83 #pragma pack(pop) 83 #pragma pack(pop)
84 84