visual_server_light_baker.h 585 B

1234567891011121314151617181920212223242526272829
  1. #ifndef VISUALSERVERLIGHTBAKER_H
  2. #define VISUALSERVERLIGHTBAKER_H
  3. #include "servers/visual_server.h"
  4. class VisualServerLightBaker {
  5. public:
  6. struct BakeCell {
  7. uint32_t cells[8];
  8. uint32_t neighbours[7]; //one unused
  9. uint32_t albedo; //albedo in RGBE
  10. uint32_t emission; //emissive light in RGBE
  11. uint32_t light[4]; //accumulated light in 16:16 fixed point (needs to be integer for moving lights fast)
  12. float alpha; //used for upsampling
  13. uint32_t directional_pass; //used for baking directional
  14. };
  15. VisualServerLightBaker();
  16. };
  17. #endif // VISUALSERVERLIGHTBAKER_H