Mercurial > mm7
diff 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 |
line wrap: on
line diff
--- a/Engine/Graphics/LightmapBuilder.h Thu May 14 19:29:28 2015 +0600 +++ b/Engine/Graphics/LightmapBuilder.h Sun May 17 22:42:13 2015 +0600 @@ -38,9 +38,9 @@ void Draw_183808_Lightmaps(); //используется для мобильного света //bool DrawLightmap(Lightmap *a1, Vec3_float_ *pColorMult, float z_bias); bool DoDraw_183808_Lightmaps(float a2); //используется для мобильного света - bool DrawLightmaps(int *indices = nullptr); + bool DrawLightmaps(int indices); void DrawLightmapsType(int type); - bool DrawDebugOutlines(char bit_one_for_list1__bit_two_for_list2); + void DrawDebugOutlines(char bit_one_for_list1__bit_two_for_list2); double _45D643_sw(struct Edge *a1, float a2); //int _45D426_sw(struct Span *a1, struct Edge **a2, unsigned int a3, struct Edge *a4, int a5); //bool _45D3C7_sw(struct Polygon *a1); @@ -51,32 +51,32 @@ double _45CC0C_light(struct Vec3_float_ a1, float a2, float a3, struct Vec3_float_ *pNormal, float a5, int uLightType); int _45CBD4(struct RenderVertexSoft *a2, int a3, int *a4, int *a5); int _45CB89(struct RenderVertexSoft *a1, int a2); - int _45CA88(struct stru320 *a2, struct RenderVertexSoft *a3, int a4, struct Vec3_float_ *pNormal); + int _45CA88(struct LightsData *a2, struct RenderVertexSoft *a3, int a4, struct Vec3_float_ *pNormal); bool ApplyLight_BLV(struct StationaryLight *pLight, struct BLVFace *a2, unsigned int *pSlot, bool bLightBackfaces, char *a5); bool ApplyLights_IndoorFace(unsigned int uFaceID); int _45C6D6(int a2, struct RenderVertexSoft *a3, Lightmap *pLightmap); int _45C4B9(int a2, struct RenderVertexSoft *a3, Lightmap *pLightmap); 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); - bool ApplyLights(struct stru320 *a2, struct stru154 *a3, unsigned int uNumVertices, struct RenderVertexSoft *a5, struct IndoorCameraD3D_Vec4 *, char uClipFlag); + bool ApplyLights(struct LightsData *a2, struct stru154 *a3, unsigned int uNumVertices, struct RenderVertexSoft *a5, struct IndoorCameraD3D_Vec4 *, char uClipFlag); //void ( ***vdestructor_ptr)(LightmapBuilder *, bool); //std::vector<Lightmap> std__vector_000004; //std::vector<Lightmap> std__vector_183808; - Lightmap std__vector_000004[512]; - unsigned int std__vector_000004_size; - Lightmap std__vector_183808[768]; - unsigned int std__vector_183808_size; - float flt_3C8C0C; - float flt_3C8C10; - float flt_3C8C14; - float flt_3C8C18; - float flt_3C8C1C; - float flt_3C8C20; + Lightmap StationaryLights[512];//std__vector_000004 + unsigned int StationaryLightsCount;//std__vector_000004_size + Lightmap MobileLights[768];//std__vector_183808 + unsigned int MobileLightsCount;//std__vector_183808_size + float light_length_x; + float light_length_y; + float light_length_z; + float light_length_x2; + float light_length_y2; + float light_length_z2; float tex_light_radius;//flt_3C8C24; float flt_3C8C28; float flt_3C8C2C_lightmaps_brightness; - float flt_3C8C30; + float light_radius; RenderVertexSoft field_3C8C34[256]; int uFlags; };