|
@@ -1,14 +1,16 @@
|
|
#ifdef PREPASS
|
|
#ifdef PREPASS
|
|
#extension GL_EXT_draw_buffers : require
|
|
#extension GL_EXT_draw_buffers : require
|
|
-layout(location = 0) out vec4 glFragData[{X}];
|
|
|
|
-vec4 gl_FragColor;
|
|
|
|
|
|
+#ifdef WEBGL2
|
|
|
|
+layout(location = 0) out highp vec4 glFragData[{X}];
|
|
|
|
+highp vec4 gl_FragColor;
|
|
|
|
+#endif
|
|
|
|
|
|
#ifdef PREPASS_DEPTHNORMAL
|
|
#ifdef PREPASS_DEPTHNORMAL
|
|
- varying vec3 vViewPos;
|
|
|
|
|
|
+ varying highp vec3 vViewPos;
|
|
#endif
|
|
#endif
|
|
#ifdef PREPASS_VELOCITY
|
|
#ifdef PREPASS_VELOCITY
|
|
- varying vec4 vCurrentPosition;
|
|
|
|
- varying vec4 vPreviousPosition;
|
|
|
|
|
|
+ varying highp vec4 vCurrentPosition;
|
|
|
|
+ varying highp vec4 vPreviousPosition;
|
|
#endif
|
|
#endif
|
|
|
|
|
|
#endif
|
|
#endif
|