Fix EEVEE-Next: Compilation on Metal

This commit is contained in:
Clément Foucault 2023-10-10 23:46:01 +02:00
parent a6a2af5fdd
commit a82e9586c4
1 changed files with 1 additions and 1 deletions

View File

@ -170,7 +170,7 @@ ScreenTraceHitData raytrace_planar(RayTraceData rt_data,
raytrace_clip_ray_to_near_plane(ray);
}
vec2 inv_texture_size = 1.0 / textureSize(planar_depth_tx, 0).xy;
vec2 inv_texture_size = 1.0 / vec2(textureSize(planar_depth_tx, 0).xy);
/* NOTE: The 2.0 factor here is because we are applying it in NDC space. */
/* TODO(@fclem): This uses the main view's projection matrix, not the planar's one.
* This works fine for reflection, but this prevent the use of any other projection capture. */