From c99ecda7bed596922125f6b1ef1ef2ae8f27703e Mon Sep 17 00:00:00 2001 From: Patrick Date: Fri, 26 Mar 2021 19:36:35 +0100 Subject: SSSSS comments --- shaders/vert_irradiance.glsl | 44 +++++++++++++------------------------------- 1 file changed, 13 insertions(+), 31 deletions(-) (limited to 'shaders/vert_irradiance.glsl') diff --git a/shaders/vert_irradiance.glsl b/shaders/vert_irradiance.glsl index 6b54180..89ba12e 100644 --- a/shaders/vert_irradiance.glsl +++ b/shaders/vert_irradiance.glsl @@ -23,55 +23,37 @@ uniform mat4 lightViewInv; uniform mat4 projection; uniform mat4 lightProjection; -vec4 blur(sampler2D tex, vec2 uv, vec2 res) { - float Pi = 6.28318530718; // Pi*2 - - // GAUSSIAN BLUR SETTINGS {{{ - float Directions = 16.0; // BLUR DIRECTIONS (Default 16.0 - More is better but slower) - float Quality = 4.0; // BLUR QUALITY (Default 4.0 - More is better but slower) - float Size = 8.0; // BLUR SIZE (Radius) - // GAUSSIAN BLUR SETTINGS }}} - - vec2 Radius = Size/res; - - // Pixel colour - vec4 Color = texture(tex, uv); - - // Blur calculations - for( float d=0.0; d