Add clear pass for metal

master
Lubos Lenco 2020-05-04 23:08:47 +02:00
parent 61ff96786f
commit 66e9572554
4 changed files with 36 additions and 2 deletions

View File

@ -0,0 +1,9 @@
#version 450
in vec2 texCoord;
out vec4 fragColor;
void main() {
fragColor = vec4(0.0, 0.0, 0.0, 1.0);
gl_FragDepth = 1.0;
}

View File

@ -0,0 +1,14 @@
{
"contexts": [
{
"name": "clear_pass",
"depth_write": true,
"compare_mode": "always",
"cull_mode": "none",
"links": [],
"texture_params": [],
"vertex_shader": "../include/pass.vert.glsl",
"fragment_shader": "clear_pass.frag.glsl"
}
]
}

View File

Internal Server Error - Final Minetest

Internal Server Error

Gitea Version: 1.20.5

@ -62,6 +62,13 @@ class RenderPathForward {
path = _path;
#if kha_metal
{
path.loadShader("shader_datas/clear_pass/clear_pass");
path.clearShader = "shader_datas/clear_pass/clear_pass";
}