aboutsummaryrefslogtreecommitdiff
path: root/template
diff options
context:
space:
mode:
authorAdrian Kummerlaender2019-09-25 21:55:01 +0200
committerAdrian Kummerlaender2019-09-25 21:55:01 +0200
commit95142dbc573d2792f021eb0eb7ae1c7cb96641b0 (patch)
tree9b7336d1dc790aff25c895cc1a44187761078699 /template
parent191c425e06c040afc0e24fec9c854090fa032461 (diff)
downloadsymlbm_playground-95142dbc573d2792f021eb0eb7ae1c7cb96641b0.tar
symlbm_playground-95142dbc573d2792f021eb0eb7ae1c7cb96641b0.tar.gz
symlbm_playground-95142dbc573d2792f021eb0eb7ae1c7cb96641b0.tar.bz2
symlbm_playground-95142dbc573d2792f021eb0eb7ae1c7cb96641b0.tar.lz
symlbm_playground-95142dbc573d2792f021eb0eb7ae1c7cb96641b0.tar.xz
symlbm_playground-95142dbc573d2792f021eb0eb7ae1c7cb96641b0.tar.zst
symlbm_playground-95142dbc573d2792f021eb0eb7ae1c7cb96641b0.zip
Use floats for texture storage, test curl visualization
Using `GL_RGBA32F` as the texture storage format instead of packing values into the unit interval.
Diffstat (limited to 'template')
-rw-r--r--template/opengl.mako2
1 files changed, 1 insertions, 1 deletions
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
}