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.
|
|
|
|
****************************************************************************/
|
|
|
|
|
2014-05-09 09:01:48 +08:00
|
|
|
#include "renderer/ccShaders.h"
|
2012-03-16 13:42:53 +08:00
|
|
|
|
2014-05-10 07:45:42 +08:00
|
|
|
#define STRINGIFY(A) #A
|
|
|
|
|
2012-03-16 13:42:53 +08:00
|
|
|
NS_CC_BEGIN
|
|
|
|
//
|
2015-04-30 00:48:14 +08:00
|
|
|
|
2016-03-20 21:53:44 +08:00
|
|
|
#include "renderer/ccShader_Position_uColor.frag"
|
2015-04-30 00:48:14 +08:00
|
|
|
|
2016-03-20 21:53:44 +08:00
|
|
|
#include "renderer/ccShader_Position_uColor.vert"
|
2012-03-16 13:42:53 +08:00
|
|
|
|
|
|
|
//
|
2016-03-20 21:53:44 +08:00
|
|
|
#include "renderer/ccShader_PositionColor.frag"
|
|
|
|
#include "renderer/ccShader_PositionColor.vert"
|
2012-03-16 13:42:53 +08:00
|
|
|
|
2015-01-13 22:30:50 +08:00
|
|
|
//
|
2016-03-20 21:53:44 +08:00
|
|
|
#include "renderer/ccShader_PositionColorTextureAsPointsize.vert"
|
2015-01-13 22:30:50 +08:00
|
|
|
|
2012-03-16 13:42:53 +08:00
|
|
|
//
|
2016-03-20 21:53:44 +08:00
|
|
|
#include "renderer/ccShader_PositionTexture.frag"
|
|
|
|
#include "renderer/ccShader_PositionTexture.vert"
|
2012-03-16 13:42:53 +08:00
|
|
|
|
|
|
|
//
|
2016-03-20 21:53:44 +08:00
|
|
|
#include "renderer/ccShader_PositionTextureA8Color.frag"
|
|
|
|
#include "renderer/ccShader_PositionTextureA8Color.vert"
|
2012-03-16 13:42:53 +08:00
|
|
|
|
|
|
|
//
|
2016-03-20 21:53:44 +08:00
|
|
|
#include "renderer/ccShader_PositionTextureColor.frag"
|
|
|
|
#include "renderer/ccShader_PositionTextureColor.vert"
|
2012-03-16 13:42:53 +08:00
|
|
|
|
2013-12-06 13:24:59 +08:00
|
|
|
//
|
2016-03-20 21:53:44 +08:00
|
|
|
#include "renderer/ccShader_PositionTextureColor_noMVP.frag"
|
|
|
|
#include "renderer/ccShader_PositionTextureColor_noMVP.vert"
|
2013-12-06 13:24:59 +08:00
|
|
|
|
2012-03-16 13:42:53 +08:00
|
|
|
//
|
2016-03-20 21:53:44 +08:00
|
|
|
#include "renderer/ccShader_PositionTextureColorAlphaTest.frag"
|
2012-03-16 13:42:53 +08:00
|
|
|
|
|
|
|
//
|
2016-03-20 21:53:44 +08:00
|
|
|
#include "renderer/ccShader_PositionTexture_uColor.frag"
|
|
|
|
#include "renderer/ccShader_PositionTexture_uColor.vert"
|
2013-12-13 12:42:15 +08:00
|
|
|
|
2016-03-20 21:53:44 +08:00
|
|
|
#include "renderer/ccShader_PositionColorLengthTexture.frag"
|
|
|
|
#include "renderer/ccShader_PositionColorLengthTexture.vert"
|
2014-03-20 20:56:10 +08:00
|
|
|
|
2016-03-20 21:53:44 +08:00
|
|
|
#include "renderer/ccShader_UI_Gray.frag"
|
2014-05-10 07:45:42 +08:00
|
|
|
//
|
2016-03-20 21:53:44 +08:00
|
|
|
#include "renderer/ccShader_Label.vert"
|
|
|
|
#include "renderer/ccShader_Label_df.frag"
|
|
|
|
#include "renderer/ccShader_Label_df_glow.frag"
|
|
|
|
#include "renderer/ccShader_Label_normal.frag"
|
|
|
|
#include "renderer/ccShader_Label_outline.frag"
|
2013-12-13 12:42:15 +08:00
|
|
|
|
2014-05-19 05:49:16 +08:00
|
|
|
//
|
2016-03-20 21:53:44 +08:00
|
|
|
#include "renderer/ccShader_3D_PositionTex.vert"
|
|
|
|
#include "renderer/ccShader_3D_Color.frag"
|
|
|
|
#include "renderer/ccShader_3D_ColorTex.frag"
|
|
|
|
#include "renderer/ccShader_3D_PositionNormalTex.vert"
|
|
|
|
#include "renderer/ccShader_3D_ColorNormal.frag"
|
|
|
|
#include "renderer/ccShader_3D_ColorNormalTex.frag"
|
|
|
|
#include "renderer/ccShader_3D_Particle.vert"
|
|
|
|
#include "renderer/ccShader_3D_Particle.frag"
|
|
|
|
#include "renderer/ccShader_3D_Skybox.vert"
|
|
|
|
#include "renderer/ccShader_3D_Skybox.frag"
|
|
|
|
#include "renderer/ccShader_3D_Terrain.vert"
|
|
|
|
#include "renderer/ccShader_3D_Terrain.frag"
|
|
|
|
#include "renderer/ccShader_CameraClear.vert"
|
|
|
|
#include "renderer/ccShader_CameraClear.frag"
|
2014-05-19 05:49:16 +08:00
|
|
|
|
2016-07-25 17:31:54 +08:00
|
|
|
// ETC1 ALPHA support
|
|
|
|
#include "renderer/ccShader_ETC1AS_PositionTextureColor.frag"
|
|
|
|
#include "renderer/ccShader_ETC1AS_PositionTextureGray.frag"
|
2017-05-22 13:42:00 +08:00
|
|
|
|
|
|
|
#include "renderer/ccShader_Position.vert"
|
|
|
|
#include "renderer/ccShader_LayerRadialGradient.frag"
|
|
|
|
|
2012-03-16 13:42:53 +08:00
|
|
|
NS_CC_END
|