From 34e7a74bbaa2ef09afed8182bd9c5a19772cebc0 Mon Sep 17 00:00:00 2001 From: devZoGok Date: Wed, 10 Nov 2021 20:22:31 +0200 Subject: [PATCH] temporary fix --- texture.frag | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/texture.frag b/texture.frag index 425f67f..a29e3f4 100755 --- a/texture.frag +++ b/texture.frag @@ -46,7 +46,6 @@ float getShadow(int id){ int type = light[id].type; float shadow = 0, closestDepth = 0, currentDepth = 0, bias = .005, val = .7; -/* if(type == 0){ vec3 projDir = fragPos - light[id].pos; closestDepth = texture(light[id].depthMapCube, projDir).r * light[id].far; @@ -66,7 +65,6 @@ float getShadow(int id){ if(projCoords.z > 1) shadow = 0; } -*/ return shadow; } @@ -125,19 +123,6 @@ void main(){ } } -/* -*/ - for(int i = 0; i < numLights; i++){ - float shadow = getShadow(i); - diffuseCol *= (1 - shadow); - } - if(environmentMapEnabled){ - vec3 projDir = normalize(fragPos - camPos); - projDir = reflect(projDir, norm); - vec3 sample = texture(environmentMap, projDir).rgb; - diffuseCol.rgb += sample; - } - finalColor *= vec4(diffuseCol + specularCol, 1); }