From 0e4798d8e883c3c0230e5bd3c00023524cad9033 Mon Sep 17 00:00:00 2001 From: Noah Lyons Date: Wed, 29 Jan 2020 19:30:03 -0800 Subject: [PATCH] fill constructor with 0.0 (#66) --- src/renderer/glsl/chunks/intersect.glsl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/renderer/glsl/chunks/intersect.glsl b/src/renderer/glsl/chunks/intersect.glsl index 25182b1..71c9ae5 100644 --- a/src/renderer/glsl/chunks/intersect.glsl +++ b/src/renderer/glsl/chunks/intersect.glsl @@ -30,7 +30,7 @@ void surfaceInteractionFromBVH(inout SurfaceInteraction si, Triangle tri, vec3 b vec2 uv2 = texelFetch(uvs, i2, 0).xy; vec2 uv = fract(barycentric.x * uv0 + barycentric.y * uv1 + barycentric.z * uv2); #else - vec2 uv = vec2(); + vec2 uv = vec2(0.0); #endif si.materialType = int(getMatType(materialIndex));