Differential D16243 Diff 58431 source/blender/draw/engines/eevee/shaders/effect_downsample_frag.glsl
Changeset View
Changeset View
Standalone View
Standalone View
source/blender/draw/engines/eevee/shaders/effect_downsample_frag.glsl
| #pragma BLENDER_REQUIRE(common_math_lib.glsl) | #pragma BLENDER_REQUIRE(common_math_lib.glsl) | ||||
| /** | /** | ||||
| * Simple down-sample shader. | * Simple down-sample shader. | ||||
| * Do a gaussian filter using 4 bilinear texture samples. | * Do a gaussian filter using 4 bilinear texture samples. | ||||
| */ | */ | ||||
| uniform sampler2D source; | |||||
| uniform float fireflyFactor; | |||||
| #ifndef COPY_SRC | |||||
| uniform vec2 texelSize; | |||||
| #endif | |||||
| out vec4 FragColor; | |||||
| void main() | void main() | ||||
| { | { | ||||
| #ifdef COPY_SRC | #ifdef COPY_SRC | ||||
| vec2 uvs = gl_FragCoord.xy / vec2(textureSize(source, 0)); | vec2 uvs = gl_FragCoord.xy / vec2(textureSize(source, 0)); | ||||
| FragColor = textureLod(source, uvs, 0.0); | FragColor = textureLod(source, uvs, 0.0); | ||||
| FragColor = safe_color(FragColor); | FragColor = safe_color(FragColor); | ||||
| /* Clamped brightness. */ | /* Clamped brightness. */ | ||||
| Show All 17 Lines | |||||