Evsm.h 554 B

12345678910111213141516171819
  1. // Copyright (C) 2009-2020, Panagiotis Christopoulos Charitos and contributors.
  2. // All rights reserved.
  3. // Code licensed under the BSD License.
  4. // http://www.anki3d.org/LICENSE
  5. #pragma once
  6. #include <shaders/glsl_cpp_common/Common.h>
  7. ANKI_BEGIN_NAMESPACE
  8. #define ANKI_EVSM4 0 // 2 component EVSM or 4 component EVSM
  9. const F32 EVSM_POSITIVE_CONSTANT = 40.0f; // EVSM positive constant
  10. const F32 EVSM_NEGATIVE_CONSTANT = 5.0f; // EVSM negative constant
  11. const F32 EVSM_BIAS = 0.01f;
  12. const F32 EVSM_LIGHT_BLEEDING_REDUCTION = 0.05f;
  13. ANKI_END_NAMESPACE