Update Files

This commit is contained in:
2025-01-22 16:18:30 +01:00
parent ed4603cf95
commit a36294b518
16718 changed files with 2960346 additions and 0 deletions

View File

@ -0,0 +1,26 @@
// Weighted blended OIT by McGuire and Bavoil
#version 450
#include "compiled.inc"
uniform sampler2D gbuffer0; // accum
uniform sampler2D gbuffer1; // revealage
uniform vec2 texSize;
in vec2 texCoord;
out vec4 fragColor;
void main() {
vec4 accum = texelFetch(gbuffer0, ivec2(texCoord * texSize), 0);
float revealage = 1.0 - accum.a;
// Save the blending and color texture fetch cost
if (revealage == 0.0) {
discard;
}
float f = texelFetch(gbuffer1, ivec2(texCoord * texSize), 0).r;
fragColor = vec4(accum.rgb / clamp(f, 0.0001, 5000), revealage);
}

View File

@ -0,0 +1,24 @@
{
"contexts": [
{
"name": "translucent_resolve",
"depth_write": false,
"compare_mode": "always",
"cull_mode": "none",
"blend_source": "source_alpha",
"blend_destination": "inverse_source_alpha",
"blend_operation": "add",
"alpha_blend_source": "source_alpha",
"alpha_blend_destination": "inverse_source_alpha",
"alpha_blend_operation": "add",
"links": [
{
"name": "texSize",
"link": "_screenSize"
}
],
"vertex_shader": "../include/pass.vert.glsl",
"fragment_shader": "translucent_resolve.frag.glsl"
}
]
}