This commit is contained in:
summetdev
2020-10-27 22:08:53 +03:00
parent a3abadd8c2
commit 2918a0ea86
40 changed files with 40 additions and 40 deletions

View File

@@ -115,4 +115,4 @@ void main(){
vec3 result = inScatter(eye, dir, e, l);
gl_FragColor = vec4(result, 1.0);
}
}

View File

@@ -10,4 +10,4 @@ void main(){
v_position = a_position;
v_model = u_model;
gl_Position = u_projection*u_model*a_position;
}
}

View File

@@ -5,4 +5,4 @@ uniform samplerCube u_cubemap;
void main(){
gl_FragColor = textureCube(u_cubemap, v_texCoords);
}
}

View File

@@ -9,4 +9,4 @@ const float SCALE = 50.0;
void main(){
v_texCoords = a_position;
gl_Position = u_proj * vec4(a_position * SCALE, 1.0);
}
}

View File

@@ -6,4 +6,4 @@ uniform sampler2D u_texture;
void main(){
vec4 c = texture2D(u_texture, v_texCoords);
gl_FragColor = v_color * mix(c, vec4(v_mix_color.rgb, c.a), v_mix_color.a);
}
}

View File

@@ -29,4 +29,4 @@ void main(){
}
gl_FragColor = color;
}
}

View File

@@ -20,4 +20,4 @@ void main(){
color.rgb = texture2D(u_stars, coords/NSCALE + vec2(-0.1, -0.1) + u_ccampos / CAMSCALE).rgb;
gl_FragColor = color;
}
}

View File

@@ -24,4 +24,4 @@ void main(){
}
gl_FragColor = color;
}
}

View File

@@ -34,4 +34,4 @@ void main(){
}
gl_FragColor = vec4(color.rgb, 1.0);
}
}