From 930e8ead017d3f40454de4109d06956ee4a3cbed Mon Sep 17 00:00:00 2001 From: CybArciom Date: Tue, 31 Jan 2023 16:50:00 +0100 Subject: [PATCH] Modiefied fragment shader 9.1 --- cw 9/shaders/shader_9_1.frag | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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);