Modiefied fragment shader 9.1
This commit is contained in:
parent
4a14abfd09
commit
f0d712e68b
@ -130,6 +130,8 @@ void main()
|
||||
vec3 ilumination;
|
||||
ilumination = ambient+PBRLight(lightDir,attenuatedlightColor,normal,viewDir);
|
||||
|
||||
// attenuatedlightColor = lightColor/pow(length(lightPos-worldPos),2);
|
||||
// ilumination=ilumination+PBRLight(lightDir,attenuatedlightColor,normal,viewDir); dla pocisku
|
||||
//flashlight
|
||||
//vec3 spotlightDir= normalize(spotlightDirTS);
|
||||
vec3 spotlightDir= normalize(spotlightPos-worldPos);
|
||||
|
Loading…
Reference in New Issue
Block a user