forgot to re-enable DH overdraw prevention hehehe

This commit is contained in:
Xonk
2024-02-05 16:45:49 -05:00
parent 1b15799911
commit 49ed9be196
2 changed files with 2 additions and 2 deletions

View File

@ -64,7 +64,7 @@ vec3 toScreenSpace(vec3 p) {
/* RENDERTARGETS:1,7,8 */
void main() {
// overdraw prevention
// if(clamp(1.0-length(pos.xyz)/max(far-16,0.0),0,1) > 0 ) discard;
if(clamp(1.0-length(pos.xyz)/max(far-16,0.0),0,1) > 0 ) discard;
vec3 normals = viewToWorld(normals_and_materials.xyz);
float materials = normals_and_materials.a;