From 95142dbc573d2792f021eb0eb7ae1c7cb96641b0 Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Wed, 25 Sep 2019 21:55:01 +0200 Subject: Use floats for texture storage, test curl visualization Using `GL_RGBA32F` as the texture storage format instead of packing values into the unit interval. --- template/opengl.mako | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'template') diff --git a/template/opengl.mako b/template/opengl.mako index 50cdbbc..52699d5 100644 --- a/template/opengl.mako +++ b/template/opengl.mako @@ -115,7 +115,7 @@ __kernel void collect_gl_moments_to_texture(__global __read_only ${float_type}* if (material_up != 5) { n.z = -1; } if (material_down != 5) { n.z = 1; } - data.xyz = 0.5 + 0.5*n; // pack surface normal into texture + data.xyz = normalize(n); data.w = 1.0; // signal impermeable material to raytracer } -- cgit v1.2.3