Fixed some basic crashes

This commit is contained in:
Anuken
2020-03-06 15:30:51 -05:00
parent 77f406e9b8
commit f8b554aff8
4 changed files with 4 additions and 8 deletions

View File

@@ -9,10 +9,7 @@ uniform vec3 u_ambientColor;
varying vec4 v_col;
const vec3 ambientColor = vec3(1.0);
const vec3 diffuse = vec3(0.2);
const vec3 v1 = vec3(1.0, 0.0, 1.0);
const vec3 v2 = vec3(1.0, 0.5, 0.0);
void main(){
vec3 norc = u_ambientColor * (diffuse + vec3(clamp((dot(a_normal, u_lightdir) + 1.0) / 2.0, 0.0, 1.0)));