Initial commit: Minecraft 光追着色器包(从零实现的 path tracing)
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
// 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);
|
||||
}
|
||||
Reference in New Issue
Block a user