diff --git a/cw 9/shaders/shader_9_1.frag b/cw 9/shaders/shader_9_1.frag index fc8548c..111c3fb 100644 --- a/cw 9/shaders/shader_9_1.frag +++ b/cw 9/shaders/shader_9_1.frag @@ -129,7 +129,9 @@ void main() vec3 attenuatedlightColor = lightColor/pow(length(lightPos-worldPos),2); //dla pocisku 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);