|
@@ -26,14 +26,12 @@ void main() {
|
|
[fragment]
|
|
[fragment]
|
|
|
|
|
|
#ifndef USE_GLES_OVER_GL
|
|
#ifndef USE_GLES_OVER_GL
|
|
-
|
|
|
|
#ifdef GL_EXT_shader_texture_lod
|
|
#ifdef GL_EXT_shader_texture_lod
|
|
#extension GL_EXT_shader_texture_lod : enable
|
|
#extension GL_EXT_shader_texture_lod : enable
|
|
#define texture2DLod(img, coord, lod) texture2DLodEXT(img, coord, lod)
|
|
#define texture2DLod(img, coord, lod) texture2DLodEXT(img, coord, lod)
|
|
#define textureCubeLod(img, coord, lod) textureCubeLodEXT(img, coord, lod)
|
|
#define textureCubeLod(img, coord, lod) textureCubeLodEXT(img, coord, lod)
|
|
#endif
|
|
#endif
|
|
-
|
|
|
|
-#endif
|
|
|
|
|
|
+#endif // !USE_GLES_OVER_GL
|
|
|
|
|
|
#ifdef GL_ARB_shader_texture_lod
|
|
#ifdef GL_ARB_shader_texture_lod
|
|
#extension GL_ARB_shader_texture_lod : enable
|
|
#extension GL_ARB_shader_texture_lod : enable
|
|
@@ -44,8 +42,6 @@ void main() {
|
|
#define textureCubeLod(img, coord, lod) textureCube(img, coord, lod)
|
|
#define textureCubeLod(img, coord, lod) textureCube(img, coord, lod)
|
|
#endif
|
|
#endif
|
|
|
|
|
|
-
|
|
|
|
-
|
|
|
|
#ifdef USE_GLES_OVER_GL
|
|
#ifdef USE_GLES_OVER_GL
|
|
#define lowp
|
|
#define lowp
|
|
#define mediump
|
|
#define mediump
|
|
@@ -58,8 +54,7 @@ precision highp int;
|
|
precision mediump float;
|
|
precision mediump float;
|
|
precision mediump int;
|
|
precision mediump int;
|
|
#endif
|
|
#endif
|
|
-
|
|
|
|
-#endif
|
|
|
|
|
|
+#endif // USE_GLES_OVER_GL
|
|
|
|
|
|
#ifdef USE_SOURCE_PANORAMA
|
|
#ifdef USE_SOURCE_PANORAMA
|
|
uniform sampler2D source_panorama; //texunit:0
|
|
uniform sampler2D source_panorama; //texunit:0
|