UNPKG

playcanvas

Version:

PlayCanvas WebGL game engine

57 lines (55 loc) 2.06 kB
var gles3PS = ` #ifndef outType_0 #define outType_0 vec4 #endif layout(location = 0) out highp outType_0 pcFragColor0; #if COLOR_ATTACHMENT_1 layout(location = 1) out highp outType_1 pcFragColor1; #endif #if COLOR_ATTACHMENT_2 layout(location = 2) out highp outType_2 pcFragColor2; #endif #if COLOR_ATTACHMENT_3 layout(location = 3) out highp outType_3 pcFragColor3; #endif #if COLOR_ATTACHMENT_4 layout(location = 4) out highp outType_4 pcFragColor4; #endif #if COLOR_ATTACHMENT_5 layout(location = 5) out highp outType_5 pcFragColor5; #endif #if COLOR_ATTACHMENT_6 layout(location = 6) out highp outType_6 pcFragColor6; #endif #if COLOR_ATTACHMENT_7 layout(location = 7) out highp outType_7 pcFragColor7; #endif #define gl_FragColor pcFragColor0 #define varying in #define texture2D texture #define texture2DBias texture #define textureCube texture #define texture2DProj textureProj #define texture2DLod textureLod #define texture2DProjLod textureProjLod #define textureCubeLod textureLod #define texture2DGrad textureGrad #define texture2DProjGrad textureProjGrad #define textureCubeGrad textureGrad #define utexture2D texture #define itexture2D texture #define texture2DLodEXT texture2DLodEXT_is_no_longer_supported_use_texture2DLod_instead #define texture2DProjLodEXT texture2DProjLodEXT_is_no_longer_supported_use_texture2DProjLod #define textureCubeLodEXT textureCubeLodEXT_is_no_longer_supported_use_textureCubeLod_instead #define texture2DGradEXT texture2DGradEXT_is_no_longer_supported_use_texture2DGrad_instead #define texture2DProjGradEXT texture2DProjGradEXT_is_no_longer_supported_use_texture2DProjGrad_instead #define textureCubeGradEXT textureCubeGradEXT_is_no_longer_supported_use_textureCubeGrad_instead #define textureShadow(res, uv) textureGrad(res, uv, vec2(1, 1), vec2(1, 1)) #define SHADOWMAP_PASS(name) name #define SHADOWMAP_ACCEPT(name) sampler2DShadow name #define TEXTURE_PASS(name) name #define TEXTURE_ACCEPT(name) sampler2D name #define TEXTURE_ACCEPT_HIGHP(name) highp sampler2D name #define GL2 `; export { gles3PS as default };