Shaders.cpp 747 B

123456789101112131415
  1. #include "client/rendering/Shaders.h"
  2. Shaders::Shaders() :
  3. world("resources/shader/worldVertex.vs", "resources/shader/worldFragment.fs"),
  4. ssao("resources/shader/ssaoVertex.vs", "resources/shader/ssaoFragment.fs"),
  5. ssaoBlur("resources/shader/ssaoBlurVertex.vs", "resources/shader/ssaoBlurFragment.fs"),
  6. shadow("resources/shader/worldShadowVertex.vs", "resources/shader/worldShadowFragment.fs"),
  7. postWorld("resources/shader/worldPostVertex.vs", "resources/shader/worldPostFragment.fs"),
  8. text("resources/shader/textVertex.vs", "resources/shader/textFragment.fs") {
  9. }
  10. bool Shaders::hasError() const {
  11. return world.hasError() || ssao.hasError() || ssaoBlur.hasError() || shadow.hasError() || postWorld.hasError() ||
  12. text.hasError();
  13. }