1
0
Fork 0

Add Textures

This commit is contained in:
MrDev023 2016-09-29 21:31:44 +02:00
parent 78dc21fee8
commit 94a63390ef
19 changed files with 8232 additions and 29 deletions

BIN
res/images/2x2_grid.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 54 KiB

BIN
res/images/pearl-0003.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.4 MiB

View file

@ -1,6 +1,7 @@
uniform float a;
#version 150
uniform float y;
void main(void){
if(a >= 0)gl_FragColor = vec4(a,0,0,1);
else gl_FragColor = vec4(0,-a,0,1);
gl_FragColor= vec4(1, 1 - abs(y)/50,1 - abs(y)/50,1);
}

View file

@ -1,4 +1,4 @@
#version 150
void main(void){
gl_FrontColor = gl_Color;