Implemented elevation in-game with sprites

This commit is contained in:
Anuken
2018-06-11 21:08:15 -04:00
parent b609b5909b
commit e36a666542
16 changed files with 552 additions and 419 deletions

View File

@ -48,7 +48,7 @@ float snoise(vec2 v){
void main() {
vec2 c = v_texCoord.xy;
vec4 color = texture2D(u_texture, c);
vec4 color = texture2D(u_texture, c) * v_color;
vec2 v = vec2(1.0/screensize.x, 1.0/screensize.y);
ivec2 icoords = ivec2(int(c.x / v.x + camerapos.x), int(c.y / v.y + camerapos.y));