Shaders.cpp 862 B

12345678910111213141516
  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. antialias("resources/shader/antialiasVertex.vs", "resources/shader/antialiasFragment.fs") {
  10. }
  11. bool Shaders::hasError() const {
  12. return world.hasError() || ssao.hasError() || ssaoBlur.hasError() || shadow.hasError() || postWorld.hasError() ||
  13. text.hasError() || antialias.hasError();
  14. }