Added cubemap stars

This commit is contained in:
Anuken
2020-03-29 19:39:29 -04:00
parent 7ba7e14282
commit fc65812263
11 changed files with 117 additions and 6 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 239 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 447 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 398 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 316 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 229 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 280 KiB

View File

@@ -0,0 +1,7 @@
varying vec3 v_texCoords;
uniform samplerCube u_cubemap;
void main(){
gl_FragColor = textureCube(u_cubemap, v_texCoords);
}

View File

@@ -0,0 +1,12 @@
attribute vec3 a_position;
varying vec3 v_texCoords;
uniform mat4 u_proj;
const float SCALE = 50.0;
void main(){
v_texCoords = a_position;
gl_Position = u_proj * vec4(a_position * SCALE, 1.0);
}