ccShaders.h 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. /****************************************************************************
  2. Copyright (c) 2011 Zynga Inc.
  3. Copyright (c) 2012 cocos2d-x.org
  4. Copyright (c) 2013-2016 Chukong Technologies Inc.
  5. Copyright (c) 2017-2018 Xiamen Yaji Software Co., Ltd.
  6. http://www.cocos2d-x.org
  7. Permission is hereby granted, free of charge, to any person obtaining a copy
  8. of this software and associated documentation files (the "Software"), to deal
  9. in the Software without restriction, including without limitation the rights
  10. to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  11. copies of the Software, and to permit persons to whom the Software is
  12. furnished to do so, subject to the following conditions:
  13. The above copyright notice and this permission notice shall be included in
  14. all copies or substantial portions of the Software.
  15. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  16. IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  17. FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  18. AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  19. LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  20. OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
  21. THE SOFTWARE.
  22. ****************************************************************************/
  23. #ifndef __CCSHADER_H__
  24. #define __CCSHADER_H__
  25. /// @cond DO_NOT_SHOW
  26. #include "platform/CCGL.h"
  27. #include "platform/CCPlatformMacros.h"
  28. /**
  29. * @addtogroup renderer
  30. * @{
  31. */
  32. NS_CC_BEGIN
  33. extern CC_DLL const GLchar * ccPosition_uColor_frag;
  34. extern CC_DLL const GLchar * ccPosition_uColor_vert;
  35. extern CC_DLL const GLchar * ccPositionColor_frag;
  36. extern CC_DLL const GLchar * ccPositionColor_vert;
  37. extern CC_DLL const GLchar * ccPositionColorTextureAsPointsize_vert;
  38. extern CC_DLL const GLchar * ccPositionTexture_frag;
  39. extern CC_DLL const GLchar * ccPositionTexture_vert;
  40. extern CC_DLL const GLchar * ccPositionTextureA8Color_frag;
  41. extern CC_DLL const GLchar * ccPositionTextureA8Color_vert;
  42. extern CC_DLL const GLchar * ccPositionTextureColor_frag;
  43. extern CC_DLL const GLchar * ccPositionTextureColor_vert;
  44. extern CC_DLL const GLchar * ccPositionTextureColor_noMVP_frag;
  45. extern CC_DLL const GLchar * ccPositionTextureColor_noMVP_vert;
  46. extern CC_DLL const GLchar * ccPositionTextureColorAlphaTest_frag;
  47. extern CC_DLL const GLchar * ccPositionTexture_uColor_frag;
  48. extern CC_DLL const GLchar * ccPositionTexture_uColor_vert;
  49. extern CC_DLL const GLchar * ccPositionColorLengthTexture_frag;
  50. extern CC_DLL const GLchar * ccPositionColorLengthTexture_vert;
  51. extern CC_DLL const GLchar * ccPositionTexture_GrayScale_frag;
  52. extern CC_DLL const GLchar * ccLabelDistanceFieldNormal_frag;
  53. extern CC_DLL const GLchar * ccLabelDistanceFieldGlow_frag;
  54. extern CC_DLL const GLchar * ccLabelNormal_frag;
  55. extern CC_DLL const GLchar * ccLabelOutline_frag;
  56. extern CC_DLL const GLchar * ccLabel_vert;
  57. extern CC_DLL const GLchar * cc3D_PositionTex_vert;
  58. extern CC_DLL const GLchar * cc3D_SkinPositionTex_vert;
  59. extern CC_DLL const GLchar * cc3D_ColorTex_frag;
  60. extern CC_DLL const GLchar * cc3D_Color_frag;
  61. extern CC_DLL const GLchar * cc3D_PositionNormalTex_vert;
  62. extern CC_DLL const GLchar * cc3D_SkinPositionNormalTex_vert;
  63. extern CC_DLL const GLchar * cc3D_ColorNormalTex_frag;
  64. extern CC_DLL const GLchar * cc3D_ColorNormal_frag;
  65. extern CC_DLL const GLchar * cc3D_Particle_vert;
  66. extern CC_DLL const GLchar * cc3D_Particle_tex_frag;
  67. extern CC_DLL const GLchar * cc3D_Particle_color_frag;
  68. extern CC_DLL const GLchar * cc3D_Skybox_vert;
  69. extern CC_DLL const GLchar * cc3D_Skybox_frag;
  70. extern CC_DLL const GLchar * cc3D_Terrain_vert;
  71. extern CC_DLL const GLchar * cc3D_Terrain_frag;
  72. extern CC_DLL const GLchar * ccCameraClearVert;
  73. extern CC_DLL const GLchar * ccCameraClearFrag;
  74. // ETC1 ALPHA supports.
  75. extern CC_DLL const GLchar* ccETC1ASPositionTextureColor_frag;
  76. extern CC_DLL const GLchar* ccETC1ASPositionTextureGray_frag;
  77. extern CC_DLL const GLchar* ccPosition_vert;
  78. extern CC_DLL const GLchar* ccShader_LayerRadialGradient_frag;
  79. NS_CC_END
  80. /**
  81. end of support group
  82. @}
  83. */
  84. /// @endcond
  85. #endif /* __CCSHADER_H__ */