ChunkFluidModel.h 573 B

1234567891011121314151617181920
  1. #pragma once
  2. #include "Area.h"
  3. #include "ChunkModelBuilder.h"
  4. class ChunkFluidModel : 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. ChunkFluidModel(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. };