2012-03-16 13:42:53 +08:00
|
|
|
/****************************************************************************
|
|
|
|
Copyright (c) 2011 Zynga Inc.
|
2014-01-07 11:25:07 +08:00
|
|
|
Copyright (c) 2012 cocos2d-x.org
|
2018-01-29 16:25:32 +08:00
|
|
|
Copyright (c) 2013-2016 Chukong Technologies Inc.
|
|
|
|
Copyright (c) 2017-2018 Xiamen Yaji Software Co., Ltd.
|
2012-03-16 13:42:53 +08:00
|
|
|
|
|
|
|
http://www.cocos2d-x.org
|
|
|
|
|
|
|
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
|
|
of this software and associated documentation files (the "Software"), to deal
|
|
|
|
in the Software without restriction, including without limitation the rights
|
|
|
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
|
|
copies of the Software, and to permit persons to whom the Software is
|
|
|
|
furnished to do so, subject to the following conditions:
|
|
|
|
|
|
|
|
The above copyright notice and this permission notice shall be included in
|
|
|
|
all copies or substantial portions of the Software.
|
|
|
|
|
|
|
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
|
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
|
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
|
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
|
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
|
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
|
|
THE SOFTWARE.
|
|
|
|
****************************************************************************/
|
2015-03-24 20:23:51 +08:00
|
|
|
|
2012-03-16 13:42:53 +08:00
|
|
|
#ifndef __CCSHADER_H__
|
|
|
|
#define __CCSHADER_H__
|
2015-03-24 20:23:51 +08:00
|
|
|
/// @cond DO_NOT_SHOW
|
2012-03-16 13:42:53 +08:00
|
|
|
|
2014-09-10 07:50:02 +08:00
|
|
|
#include "platform/CCGL.h"
|
2014-09-10 08:17:07 +08:00
|
|
|
#include "platform/CCPlatformMacros.h"
|
2012-03-16 13:42:53 +08:00
|
|
|
|
2012-06-20 18:09:11 +08:00
|
|
|
/**
|
2015-06-01 13:43:56 +08:00
|
|
|
* @addtogroup renderer
|
2012-06-20 18:09:11 +08:00
|
|
|
* @{
|
|
|
|
*/
|
|
|
|
|
2015-03-27 11:54:40 +08:00
|
|
|
NS_CC_BEGIN
|
|
|
|
|
2012-04-17 18:31:31 +08:00
|
|
|
extern CC_DLL const GLchar * ccPosition_uColor_frag;
|
|
|
|
extern CC_DLL const GLchar * ccPosition_uColor_vert;
|
2012-03-16 13:42:53 +08:00
|
|
|
|
2012-04-17 18:31:31 +08:00
|
|
|
extern CC_DLL const GLchar * ccPositionColor_frag;
|
|
|
|
extern CC_DLL const GLchar * ccPositionColor_vert;
|
2012-03-16 13:42:53 +08:00
|
|
|
|
2015-01-20 16:50:51 +08:00
|
|
|
extern CC_DLL const GLchar * ccPositionColorTextureAsPointsize_vert;
|
2015-01-13 22:30:50 +08:00
|
|
|
|
2012-04-17 18:31:31 +08:00
|
|
|
extern CC_DLL const GLchar * ccPositionTexture_frag;
|
|
|
|
extern CC_DLL const GLchar * ccPositionTexture_vert;
|
2012-03-16 13:42:53 +08:00
|
|
|
|
2012-04-17 18:31:31 +08:00
|
|
|
extern CC_DLL const GLchar * ccPositionTextureA8Color_frag;
|
|
|
|
extern CC_DLL const GLchar * ccPositionTextureA8Color_vert;
|
2012-03-16 13:42:53 +08:00
|
|
|
|
2012-04-17 18:31:31 +08:00
|
|
|
extern CC_DLL const GLchar * ccPositionTextureColor_frag;
|
|
|
|
extern CC_DLL const GLchar * ccPositionTextureColor_vert;
|
2012-03-16 13:42:53 +08:00
|
|
|
|
2013-12-06 13:24:59 +08:00
|
|
|
extern CC_DLL const GLchar * ccPositionTextureColor_noMVP_frag;
|
|
|
|
extern CC_DLL const GLchar * ccPositionTextureColor_noMVP_vert;
|
|
|
|
|
2012-04-17 18:31:31 +08:00
|
|
|
extern CC_DLL const GLchar * ccPositionTextureColorAlphaTest_frag;
|
2012-03-16 13:42:53 +08:00
|
|
|
|
2012-04-17 18:31:31 +08:00
|
|
|
extern CC_DLL const GLchar * ccPositionTexture_uColor_frag;
|
|
|
|
extern CC_DLL const GLchar * ccPositionTexture_uColor_vert;
|
2012-03-16 13:42:53 +08:00
|
|
|
|
2012-11-13 11:06:32 +08:00
|
|
|
extern CC_DLL const GLchar * ccPositionColorLengthTexture_frag;
|
|
|
|
extern CC_DLL const GLchar * ccPositionColorLengthTexture_vert;
|
|
|
|
|
2015-04-20 17:00:40 +08:00
|
|
|
extern CC_DLL const GLchar * ccPositionTexture_GrayScale_frag;
|
|
|
|
|
2013-12-13 12:42:15 +08:00
|
|
|
extern CC_DLL const GLchar * ccLabelDistanceFieldNormal_frag;
|
|
|
|
extern CC_DLL const GLchar * ccLabelDistanceFieldGlow_frag;
|
2014-03-20 20:56:10 +08:00
|
|
|
extern CC_DLL const GLchar * ccLabelNormal_frag;
|
2014-03-05 16:51:16 +08:00
|
|
|
extern CC_DLL const GLchar * ccLabelOutline_frag;
|
2014-03-20 20:56:10 +08:00
|
|
|
|
|
|
|
extern CC_DLL const GLchar * ccLabel_vert;
|
2013-12-13 12:42:15 +08:00
|
|
|
|
2014-05-19 05:49:16 +08:00
|
|
|
extern CC_DLL const GLchar * cc3D_PositionTex_vert;
|
2014-06-05 16:36:01 +08:00
|
|
|
extern CC_DLL const GLchar * cc3D_SkinPositionTex_vert;
|
2014-05-19 05:49:16 +08:00
|
|
|
extern CC_DLL const GLchar * cc3D_ColorTex_frag;
|
|
|
|
extern CC_DLL const GLchar * cc3D_Color_frag;
|
2014-08-21 11:33:00 +08:00
|
|
|
extern CC_DLL const GLchar * cc3D_PositionNormalTex_vert;
|
|
|
|
extern CC_DLL const GLchar * cc3D_SkinPositionNormalTex_vert;
|
|
|
|
extern CC_DLL const GLchar * cc3D_ColorNormalTex_frag;
|
|
|
|
extern CC_DLL const GLchar * cc3D_ColorNormal_frag;
|
2015-02-11 18:14:22 +08:00
|
|
|
extern CC_DLL const GLchar * cc3D_Particle_vert;
|
|
|
|
extern CC_DLL const GLchar * cc3D_Particle_tex_frag;
|
|
|
|
extern CC_DLL const GLchar * cc3D_Particle_color_frag;
|
2015-03-26 11:59:26 +08:00
|
|
|
extern CC_DLL const GLchar * cc3D_Skybox_vert;
|
|
|
|
extern CC_DLL const GLchar * cc3D_Skybox_frag;
|
2015-03-30 13:45:50 +08:00
|
|
|
extern CC_DLL const GLchar * cc3D_Terrain_vert;
|
|
|
|
extern CC_DLL const GLchar * cc3D_Terrain_frag;
|
2015-05-07 15:09:06 +08:00
|
|
|
extern CC_DLL const GLchar * ccCameraClearVert;
|
|
|
|
extern CC_DLL const GLchar * ccCameraClearFrag;
|
2016-07-25 17:31:54 +08:00
|
|
|
// ETC1 ALPHA supports.
|
|
|
|
extern CC_DLL const GLchar* ccETC1ASPositionTextureColor_frag;
|
2017-05-22 13:42:00 +08:00
|
|
|
extern CC_DLL const GLchar* ccETC1ASPositionTextureGray_frag;
|
|
|
|
|
|
|
|
extern CC_DLL const GLchar* ccPosition_vert;
|
|
|
|
extern CC_DLL const GLchar* ccShader_LayerRadialGradient_frag;
|
|
|
|
|
2015-03-27 11:54:40 +08:00
|
|
|
NS_CC_END
|
|
|
|
/**
|
|
|
|
end of support group
|
|
|
|
@}
|
|
|
|
*/
|
2015-03-24 20:23:51 +08:00
|
|
|
/// @endcond
|
2012-03-16 13:42:53 +08:00
|
|
|
#endif /* __CCSHADER_H__ */
|