Change projection w/keyboard
This commit is contained in:
@@ -5,6 +5,7 @@ const char * vs =
|
||||
"layout (location = 1) in float aPos_y;"
|
||||
"layout (location = 2) in float aPos_z;"
|
||||
"layout (location = 3) in float aPos_w;"
|
||||
|
||||
"layout (location = 4) in float aNormal_x;"
|
||||
"layout (location = 5) in float aNormal_y;"
|
||||
"layout (location = 6) in float aNormal_z;"
|
||||
@@ -63,7 +64,7 @@ const char * fs =
|
||||
" vec3 lightPos = vec3(0,0,-15);"
|
||||
" vec3 lightDir = normalize(lightPos - FragPos);"
|
||||
|
||||
" float diffuse = max(dot(Normal, lightDir),0.0); "
|
||||
" float diffuse = abs(dot(Normal, lightDir)); "
|
||||
|
||||
" FragColor = (0.5 + 0.5*diffuse)*color;"
|
||||
"}";
|
||||
|
||||
Reference in New Issue
Block a user