Initial commit: Minecraft 光追着色器包(从零实现的 path tracing)
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
// MinecraftPT — final.fsh
|
||||
// Final pass: copies the tonemapped result (colortex0, written by composite80)
|
||||
// to the screen.
|
||||
|
||||
#version 430 compatibility
|
||||
|
||||
uniform sampler2D colortex0;
|
||||
|
||||
void main(){
|
||||
vec2 coord = gl_FragCoord.xy / vec2(viewWidth, viewHeight);
|
||||
vec3 color = textureLod(colortex0, coord, 0.0).rgb;
|
||||
|
||||
gl_FragColor = vec4(color, 1.0);
|
||||
}
|
||||
Reference in New Issue
Block a user