We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3462724 commit 06e6d8cCopy full SHA for 06e6d8c
model/skybox/example/skybox.fp
@@ -1,7 +1,10 @@
1
-varying mediump vec3 var_texcoord0;
+#version 140
2
+
3
+in mediump vec3 var_texcoord0;
4
5
uniform samplerCube cubemap;
6
-void main() {
- gl_FragColor = textureCube(cubemap, var_texcoord0);
7
+void main()
8
+{
9
+ gl_FragColor = texture(cubemap, var_texcoord0);
10
}
model/skybox/example/skybox.vp
@@ -1,9 +1,14 @@
-uniform mediump mat4 view_proj;
-uniform mediump mat4 world;
-attribute mediump vec3 position;
+uniform vs_uniforms
+ uniform mediump mat4 view_proj;
+ uniform mediump mat4 world;
+};
+in highp vec3 position;
11
+out mediump vec3 var_texcoord0;
12
13
void main()
14
{
0 commit comments