Initial commit: Minecraft 光追着色器包(从零实现的 path tracing)
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
// MinecraftPT — DiffuseTemporal_FS
|
||||
#include "/Lib/Settings.glsl"
|
||||
#include "/Lib/Utilities.glsl"
|
||||
#include "/Lib/PathTracing/Denoiser/DiffuseTemporalFilter.glsl"
|
||||
|
||||
layout(location = 0) out vec4 colorOut;
|
||||
|
||||
void main(){
|
||||
vec2 texelCoord = gl_FragCoord.xy;
|
||||
vec3 current = texelFetch(colortex6, ivec2(texelCoord), 0).rgb;
|
||||
vec3 prev = texelFetch(colortex7, ivec2(texelCoord), 0).rgb;
|
||||
|
||||
vec3 result = DiffuseTemporalAccumulate(current, texelCoord, prev);
|
||||
|
||||
colorOut = vec4(result, 1.0);
|
||||
}
|
||||
Reference in New Issue
Block a user