Add copy_mrt pass

This commit is contained in:
luboslenco 2018-07-06 14:44:24 +02:00
parent 24c378038c
commit e220735048
2 changed files with 30 additions and 0 deletions

View file

@ -0,0 +1,16 @@
#version 450
uniform sampler2D tex0;
uniform sampler2D tex1;
uniform sampler2D tex2;
uniform sampler2D tex3;
in vec2 texCoord;
out vec4 fragColor[4];
void main() {
fragColor[0] = texture(tex0, texCoord);
fragColor[1] = texture(tex1, texCoord);
fragColor[2] = texture(tex2, texCoord);
fragColor[3] = texture(tex3, texCoord);
}

View file

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