GaussianBlurCompute.ankiprog 835 B

1234567891011121314151617181920212223242526272829303132333435
  1. <!--
  2. Copyright (C) 2009-2018, Panagiotis Christopoulos Charitos and contributors.
  3. All rights reserved.
  4. Code licensed under the BSD License.
  5. http://www.anki3d.org/LICENSE
  6. -->
  7. <shaderProgram>
  8. <mutators>
  9. <mutator name="ORIENTATION" values="0 1 2"/> <!-- 0: VERTICAL, 1: HORIZONTAL, 2: BOX -->
  10. <mutator name="KERNEL_SIZE" values="3 5 7 9 11 13 15"/>
  11. <mutator name="COLOR_COMPONENTS" values="4 3 1"/>
  12. </mutators>
  13. <shaders>
  14. <shader type="comp">
  15. <inputs>
  16. <input name="TEXTURE_SIZE" type="uvec2" const="1"/>
  17. <input name="WORKGROUP_SIZE" type="uvec2" const="1"/>
  18. </inputs>
  19. <source><![CDATA[
  20. #if ORIENTATION == 0
  21. # define VERTICAL 1
  22. #elif ORIENTATION == 1
  23. # define HORIZONTAL 1
  24. #else
  25. # define BOX 1
  26. #endif
  27. #include "shaders/GaussianBlur.glsl"
  28. ]]></source>
  29. </shader>
  30. </shaders>
  31. </shaderProgram>