EEVEE: Fix compilation

Introduced by f0d6879f5c
This commit is contained in:
Jeroen Bakker 2019-04-05 15:02:55 +02:00
parent d220a87b47
commit df99c54b5b
Notes: blender-bot 2023-02-14 06:00:51 +01:00
Referenced by issue #63404, EEVEE Volume Material Outpouts don't show in viewport or renders.
1 changed files with 1 additions and 1 deletions

View File

@ -2099,7 +2099,7 @@ void node_tex_image_linear_no_mip(vec3 co, sampler2D ima, out vec4 color, out fl
void node_tex_image_nearest(vec3 co, sampler2D ima, out vec4 color, out float alpha)
{
ivec2 pix = ivec2(fract(co.xy) * textureSize(ima, 0).xy);
color = clamp(texelFetch(ima, pix, 0));
color = safe_color(texelFetch(ima, pix, 0));
alpha = color.a;
}