NoiseTexture.h 313 B

12345678910111213141516171819
  1. #ifndef NOISETEXTURE_H
  2. #define NOISETEXTURE_H
  3. #include "client/rendering/wrapper/Texture.h"
  4. #include "common/utils/Types.h"
  5. class NoiseTexture final {
  6. public:
  7. NoiseTexture(uint width, uint height);
  8. void bind(uint index) const;
  9. private:
  10. float getRandom() const;
  11. Texture texture;
  12. };
  13. #endif