22 lines
507 B
GLSL
22 lines
507 B
GLSL
// MinecraftPT — SpecularSpatial_FS
|
|
#include "/Lib/Settings.glsl"
|
|
#include "/Lib/Utilities.glsl"
|
|
#include "/Lib/PathTracing/Denoiser/SpecularSpatialFilter.glsl"
|
|
|
|
layout(location = 0) out vec4 colorOut;
|
|
|
|
void main(){
|
|
vec2 texelCoord = gl_FragCoord.xy;
|
|
vec3 color = texelFetch(colortex11, ivec2(texelCoord), 0).rgb;
|
|
|
|
int step = 1;
|
|
#ifdef SPATIAL_STEP_2
|
|
step = 2;
|
|
#elif defined SPATIAL_STEP_4
|
|
step = 4;
|
|
#endif
|
|
|
|
color = SpecularSpatialPass(color, texelCoord, step);
|
|
|
|
colorOut = vec4(color, 1.0);
|
|
} |