mirror of
https://github.com/ConjureETS/LOG750-LAB2.git
synced 2026-03-25 03:51:20 +00:00
Merge branch 'issues/4-phong' of github.com:fataku/LOG750-LAB2 into issues/4-phong
This commit is contained in:
commit
ba769e6ed3
@ -16,7 +16,7 @@ main()
|
|||||||
{
|
{
|
||||||
vec4 texColor = texture(tex, texCoords);
|
vec4 texColor = texture(tex, texCoords);
|
||||||
if(isSky) {
|
if(isSky) {
|
||||||
fColor = texColor;
|
fColor = normalize(texColor*texColor*texColor*2/1.41)*2;
|
||||||
} else if(isPhong) {
|
} else if(isPhong) {
|
||||||
// Get lighting vectors
|
// Get lighting vectors
|
||||||
vec3 LightDirection = normalize(vec3(1,3,1));
|
vec3 LightDirection = normalize(vec3(1,3,1));
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user