ChunkGroundModel.h 574 B

12345678910111213141516171819
  1. #pragma once
  2. #include "ChunkModelBuilder.h"
  3. #include "Area.h"
  4. class ChunkGroundModel : public ChunkModelBuilder
  5. {
  6. private:
  7. __int64 calculateLight(Framework::Vec3<float> vertexPos,
  8. Framework::Vec3<int> blockPos,
  9. Direction direction);
  10. bool isPartOfGroundModel(Framework::Vec3<int> location, int directionIndex);
  11. public:
  12. ChunkGroundModel(FactoryCraftModel* target, Chunk* zChunk);
  13. void buildModel() override;
  14. bool updateLightning() override;
  15. bool isTransparent() const override;
  16. bool isPartOfModel(Block* zBlock) const override;
  17. };