Update AR background
This commit is contained in:
@@ -22,8 +22,14 @@ layout(set = 1, binding = 0) uniform CameraData
|
|||||||
|
|
||||||
void main()
|
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 = texture(camTexture, texCoords);
|
||||||
|
fragColor.rgb = fragColor.rgb - intensity;
|
||||||
|
|
||||||
#ifdef ENABLE_DEPTH_WRITE
|
#ifdef ENABLE_DEPTH_WRITE
|
||||||
gl_FragDepth = (texture(depthMap, texCoords).r - cam.near) / (cam.far - cam.near);
|
gl_FragDepth = (texture(depthMap, texCoords).r - cam.near) / (cam.far - cam.near);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user