From 042572f519438541641ae82c268182a1966a331e Mon Sep 17 00:00:00 2001 From: xkamikoo <58092037+xkamikoo@users.noreply.github.com> Date: Fri, 29 Jan 2021 02:13:38 +0100 Subject: [PATCH] Bigger bloom, adjust sun intensity --- shaders/shader_sun.frag | 2 +- src/main.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/shaders/shader_sun.frag b/shaders/shader_sun.frag index 4697951..de47094 100644 --- a/shaders/shader_sun.frag +++ b/shaders/shader_sun.frag @@ -21,7 +21,7 @@ void main() FragColor = vec4(texture + texture * coef, 1.0); float brightness = dot(FragColor.rgb, vec3(0.2, 0.7, 0.07)); - if(brightness > 0.7) + if(brightness > 0.2) BrightColor = vec4(FragColor.rgb, 1.0); else BrightColor = vec4(0.0, 0.0, 0.0, 1.0); diff --git a/src/main.cpp b/src/main.cpp index 329cbdd..5a78149 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -478,7 +478,7 @@ void init() Light l1; l1.position = sunPos; l1.color = glm::vec3(0.8f, 0.8f, 0.7f); - l1.intensity = 2; + l1.intensity = 7; lights.push_back(l1); Light l2;