Merge branch 'issues/4-phong' of github.com:fataku/LOG750-LAB2 into issues/4-phong

This commit is contained in:
Riku Avelar 2016-11-09 23:34:32 -05:00
commit ba769e6ed3

View File

@ -16,7 +16,7 @@ main()
{
vec4 texColor = texture(tex, texCoords);
if(isSky) {
fColor = texColor;
fColor = normalize(texColor*texColor*texColor*2/1.41)*2;
} else if(isPhong) {
// Get lighting vectors
vec3 LightDirection = normalize(vec3(1,3,1));