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
|
|
|
|
Copyright (c) 2013-2014 Chukong Technologies Inc.
|
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
|
|
|
|
2014-05-10 07:45:42 +08:00
|
|
|
#include "ccShader_Position_uColor.frag"
|
2015-04-30 00:48:14 +08:00
|
|
|
|
|
|
|
#ifdef CC_WINDOWS_PHONE_8_1
|
|
|
|
#include "ccShader_Position_uColor_wp81.vert"
|
|
|
|
#else
|
2014-05-10 07:45:42 +08:00
|
|
|
#include "ccShader_Position_uColor.vert"
|
2015-04-30 00:48:14 +08:00
|
|
|
#endif
|
2012-03-16 13:42:53 +08:00
|
|
|
|
|
|
|
//
|
2014-05-10 07:45:42 +08:00
|
|
|
#include "ccShader_PositionColor.frag"
|
|
|
|
#include "ccShader_PositionColor.vert"
|
2012-03-16 13:42:53 +08:00
|
|
|
|
2015-01-13 22:30:50 +08:00
|
|
|
//
|
2015-04-30 00:48:14 +08:00
|
|
|
#ifdef CC_WINDOWS_PHONE_8_1
|
|
|
|
#include "ccShader_PositionColorTextureAsPointsize_wp81.vert"
|
|
|
|
#else
|
2015-01-20 16:50:51 +08:00
|
|
|
#include "ccShader_PositionColorTextureAsPointsize.vert"
|
2015-04-30 00:48:14 +08:00
|
|
|
#endif
|
2015-01-13 22:30:50 +08:00
|
|
|
|
2012-03-16 13:42:53 +08:00
|
|
|
//
|
2014-05-10 07:45:42 +08:00
|
|
|
#include "ccShader_PositionTexture.frag"
|
|
|
|
#include "ccShader_PositionTexture.vert"
|
2012-03-16 13:42:53 +08:00
|
|
|
|
|
|
|
//
|
2014-05-10 07:45:42 +08:00
|
|
|
#include "ccShader_PositionTextureA8Color.frag"
|
|
|
|
#include "ccShader_PositionTextureA8Color.vert"
|
2012-03-16 13:42:53 +08:00
|
|
|
|
|
|
|
//
|
2014-05-10 07:45:42 +08:00
|
|
|
#include "ccShader_PositionTextureColor.frag"
|
|
|
|
#include "ccShader_PositionTextureColor.vert"
|
2012-03-16 13:42:53 +08:00
|
|
|
|
2013-12-06 13:24:59 +08:00
|
|
|
//
|
2014-05-10 07:45:42 +08:00
|
|
|
#include "ccShader_PositionTextureColor_noMVP.frag"
|
|
|
|
#include "ccShader_PositionTextureColor_noMVP.vert"
|
2013-12-06 13:24:59 +08:00
|
|
|
|
2012-03-16 13:42:53 +08:00
|
|
|
//
|
2014-05-10 07:45:42 +08:00
|
|
|
#include "ccShader_PositionTextureColorAlphaTest.frag"
|
2012-03-16 13:42:53 +08:00
|
|
|
|
|
|
|
//
|
2014-05-10 07:45:42 +08:00
|
|
|
#include "ccShader_PositionTexture_uColor.frag"
|
|
|
|
#include "ccShader_PositionTexture_uColor.vert"
|
2013-12-13 12:42:15 +08:00
|
|
|
|
2014-05-10 07:45:42 +08:00
|
|
|
#include "ccShader_PositionColorLengthTexture.frag"
|
|
|
|
#include "ccShader_PositionColorLengthTexture.vert"
|
2014-03-20 20:56:10 +08:00
|
|
|
|
2015-04-20 17:00:40 +08:00
|
|
|
#include "ccShader_UI_Gray.frag"
|
2014-05-10 07:45:42 +08:00
|
|
|
//
|
|
|
|
#include "ccShader_Label.vert"
|
|
|
|
#include "ccShader_Label_df.frag"
|
|
|
|
#include "ccShader_Label_df_glow.frag"
|
|
|
|
#include "ccShader_Label_normal.frag"
|
|
|
|
#include "ccShader_Label_outline.frag"
|
2013-12-13 12:42:15 +08:00
|
|
|
|
2014-05-19 05:49:16 +08:00
|
|
|
//
|
|
|
|
#include "ccShader_3D_PositionTex.vert"
|
|
|
|
#include "ccShader_3D_Color.frag"
|
|
|
|
#include "ccShader_3D_ColorTex.frag"
|
2014-08-21 11:33:00 +08:00
|
|
|
#include "ccShader_3D_PositionNormalTex.vert"
|
|
|
|
#include "ccShader_3D_ColorNormal.frag"
|
|
|
|
#include "ccShader_3D_ColorNormalTex.frag"
|
2015-02-11 18:14:22 +08:00
|
|
|
#include "ccShader_3D_Particle.vert"
|
|
|
|
#include "ccShader_3D_Particle.frag"
|
2015-03-26 11:59:26 +08:00
|
|
|
#include "ccShader_3D_Skybox.vert"
|
|
|
|
#include "ccShader_3D_Skybox.frag"
|
2015-03-30 13:45:50 +08:00
|
|
|
#include "ccShader_3D_Terrain.vert"
|
|
|
|
#include "ccShader_3D_Terrain.frag"
|
2015-05-07 15:09:06 +08:00
|
|
|
#include "ccShader_CameraClear.vert"
|
|
|
|
#include "ccShader_CameraClear.frag"
|
2014-05-19 05:49:16 +08:00
|
|
|
|
2012-03-16 13:42:53 +08:00
|
|
|
NS_CC_END
|