2019-11-23 20:27:39 +08:00
|
|
|
/****************************************************************************
|
|
|
|
Copyright (c) 2011 Zynga Inc.
|
|
|
|
Copyright (c) 2012 cocos2d-x.org
|
|
|
|
Copyright (c) 2013-2016 Chukong Technologies Inc.
|
|
|
|
Copyright (c) 2017-2018 Xiamen Yaji Software Co., Ltd.
|
2022-04-25 19:15:46 +08:00
|
|
|
Copyright (c) 2020 C4games Ltd.
|
2019-11-23 20:27:39 +08:00
|
|
|
|
2022-10-01 16:24:52 +08:00
|
|
|
https://axmolengine.github.io/
|
2019-11-23 20:27:39 +08:00
|
|
|
|
|
|
|
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.
|
|
|
|
****************************************************************************/
|
2023-06-11 13:08:08 +08:00
|
|
|
#include "renderer/Shaders.h"
|
2019-11-23 20:27:39 +08:00
|
|
|
|
2022-07-11 17:50:21 +08:00
|
|
|
NS_AX_BEGIN
|
2019-11-23 20:27:39 +08:00
|
|
|
//
|
2023-07-08 18:47:06 +08:00
|
|
|
AX_DLL const std::string_view positionColor_vert = "positionColor_vs";
|
|
|
|
AX_DLL const std::string_view positionColor_frag = "positionColor_fs";
|
|
|
|
AX_DLL const std::string_view positionTexture_vert = "positionTexture_vs";
|
|
|
|
AX_DLL const std::string_view positionTexture_frag = "positionTexture_fs";
|
|
|
|
AX_DLL const std::string_view positionTextureColor_vert = "positionTextureColor_vs";
|
|
|
|
AX_DLL const std::string_view positionTextureColor_frag = "positionTextureColor_fs";
|
|
|
|
AX_DLL const std::string_view positionTextureColorAlphaTest_frag = "positionTextureColorAlphaTest_fs";
|
|
|
|
AX_DLL const std::string_view label_normal_frag = "label_normal_fs";
|
|
|
|
AX_DLL const std::string_view label_distanceNormal_frag = "label_distanceNormal_fs";
|
|
|
|
AX_DLL const std::string_view labelOutline_frag = "labelOutline_fs";
|
|
|
|
AX_DLL const std::string_view labelDistanceFieldGlow_frag = "labelDistanceFieldGlow_fs";
|
|
|
|
AX_DLL const std::string_view positionColorLengthTexture_vert = "positionColorLengthTexture_vs";
|
|
|
|
AX_DLL const std::string_view positionColorLengthTexture_frag = "positionColorLengthTexture_fs";
|
|
|
|
AX_DLL const std::string_view positionColorTextureAsPointsize_vert = "positionColorTextureAsPointsize_vs";
|
|
|
|
AX_DLL const std::string_view position_vert = "position_vs";
|
|
|
|
AX_DLL const std::string_view layer_radialGradient_frag = "layer_radialGradient_fs";
|
|
|
|
AX_DLL const std::string_view grayScale_frag = "grayScale_fs";
|
|
|
|
AX_DLL const std::string_view positionUColor_vert = "positionUColor_vs";
|
|
|
|
AX_DLL const std::string_view dualSampler_frag = "dualSampler_fs";
|
|
|
|
AX_DLL const std::string_view dualSampler_gray_frag = "dualSampler_gray_fs";
|
|
|
|
AX_DLL const std::string_view cameraClear_vert = "cameraClear_vs";
|
|
|
|
AX_DLL const std::string_view cameraClear_frag = "cameraClear_fs";
|
2019-11-23 20:27:39 +08:00
|
|
|
|
2023-07-08 18:47:06 +08:00
|
|
|
AX_DLL const std::string_view quadTexture_frag = "quadTexture_fs";
|
|
|
|
AX_DLL const std::string_view quadTexture_vert = "quadTexture_vs";
|
|
|
|
AX_DLL const std::string_view quadColor_frag = "quadColor_fs";
|
|
|
|
AX_DLL const std::string_view quadColor_vert = "quadColor_vs";
|
2019-11-23 20:27:39 +08:00
|
|
|
|
2023-07-08 18:47:06 +08:00
|
|
|
AX_DLL const std::string_view hsv_frag = "hsv_fs";
|
|
|
|
AX_DLL const std::string_view dualSampler_hsv_frag = "dualSampler_hsv_fs";
|
2019-11-23 20:27:39 +08:00
|
|
|
|
2023-07-08 18:47:06 +08:00
|
|
|
AX_DLL const std::string_view videoTextureYUY2_frag = "videoTextureYUY2_fs";
|
|
|
|
AX_DLL const std::string_view videoTextureNV12_frag = "videoTextureNV12_fs";
|
|
|
|
AX_DLL const std::string_view videoTextureBGRA_frag = "videoTextureBGRA_fs";
|
2019-11-23 20:27:39 +08:00
|
|
|
|
2023-07-08 18:47:06 +08:00
|
|
|
/* below is 3d shaders */
|
|
|
|
AX_DLL const std::string_view lineColor3D_frag = "lineColor3D_fs";
|
|
|
|
AX_DLL const std::string_view lineColor3D_vert = "lineColor3D_vs";
|
|
|
|
AX_DLL const std::string_view color_frag = "color_fs";
|
|
|
|
AX_DLL const std::string_view colorNormal_frag = "colorNormal_fs";
|
|
|
|
AX_DLL const std::string_view colorNormalTexture_frag = "colorNormalTexture_fs";
|
|
|
|
AX_DLL const std::string_view colorTexture_frag = "colorTexture_fs";
|
|
|
|
AX_DLL const std::string_view particleTexture_frag = "particleTexture_fs";
|
|
|
|
AX_DLL const std::string_view particleColor_frag = "particleColor_fs";
|
|
|
|
AX_DLL const std::string_view particle_vert = "particle_vs";
|
|
|
|
AX_DLL const std::string_view positionNormalTexture_vert = "positionNormalTexture_vs";
|
|
|
|
AX_DLL const std::string_view skinPositionNormalTexture_vert = "skinPositionNormalTexture_vs";
|
|
|
|
AX_DLL const std::string_view positionTexture3D_vert = "positionTexture3D_vs";
|
|
|
|
AX_DLL const std::string_view skinPositionTexture_vert = "skinPositionTexture_vs";
|
|
|
|
AX_DLL const std::string_view skybox_frag = "skybox_fs";
|
|
|
|
AX_DLL const std::string_view skybox_vert = "skybox_vs";
|
|
|
|
AX_DLL const std::string_view terrain_frag = "terrain_fs";
|
|
|
|
AX_DLL const std::string_view terrain_vert = "terrain_vs";
|
2023-03-25 08:37:51 +08:00
|
|
|
|
2022-07-11 17:50:21 +08:00
|
|
|
NS_AX_END
|