// MinecraftPT — Sky Fragment Shader // Writes sky color into GBuffer with MATID_SKY so composite can identify it. // Custom sky is drawn in composite20 (Sky_Overworld_FS) over this. #include "/Lib/Settings.glsl" #include "/Lib/Utilities.glsl" in vec2 texcoord; in vec3 worldPos; in vec4 color; layout(location = 0) out vec4 colortex0Out; layout(location = 1) out vec4 colortex1Out; layout(location = 2) out vec4 colortex2Out; layout(location = 3) out vec4 colortex3Out; layout(location = 4) out vec4 colortex4Out; layout(location = 5) out vec4 colortex5Out; void main(){ vec4 albedo = texture(tex, texcoord) * color; // Sky: mark with MATID_SKY colortex0Out = vec4(albedo.rgb, 0.0); colortex1Out = vec4(0.5); colortex2Out = vec4(0.0, 0.0, 0.0, 10.0 / 255.0); // MATID_SKY colortex3Out = vec4(1.0, 1.0, 1.0, 1.0); colortex4Out = vec4(0.0); colortex5Out = vec4(0.0); }