|
@@ -26,12 +26,14 @@ 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 // !USE_GLES_OVER_GL
|
|
|
|
|
|
+
|
|
|
|
+#endif
|
|
|
|
|
|
#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
|
|
@@ -42,6 +44,8 @@ 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
|
|
@@ -54,7 +58,8 @@ precision highp int;
|
|
precision mediump float;
|
|
precision mediump float;
|
|
precision mediump int;
|
|
precision mediump int;
|
|
#endif
|
|
#endif
|
|
-#endif // USE_GLES_OVER_GL
|
|
|
|
|
|
+
|
|
|
|
+#endif
|
|
|
|
|
|
#ifdef USE_SOURCE_PANORAMA
|
|
#ifdef USE_SOURCE_PANORAMA
|
|
uniform sampler2D source_panorama; //texunit:0
|
|
uniform sampler2D source_panorama; //texunit:0
|