Update AR background

This commit is contained in:
Georg Hagen
2024-07-23 01:20:07 +02:00
parent cd97052ec2
commit d64bb7a530

View File

@@ -22,8 +22,14 @@ layout(set = 1, binding = 0) uniform CameraData
void main()
{
vec2 rm = (texCoords - 0.5) * 2;
float intensity = rm.x * rm.x + rm.y * rm.y;
intensity = (intensity / 1.4) * scale / 2;
fragColor = texture(camTexture, texCoords);
fragColor.rgb = fragColor.rgb - intensity;
#ifdef ENABLE_DEPTH_WRITE
gl_FragDepth = (texture(depthMap, texCoords).r - cam.near) / (cam.far - cam.near);
#endif
}
}