From 3d5fbbd83b18b901deb95c9670408170a73b45cc Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Tue, 31 Dec 2019 16:59:52 +0100 Subject: Improve SDF rendering quality, performance --- template/sdf.cl.mako | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'template') diff --git a/template/sdf.cl.mako b/template/sdf.cl.mako index b98b35f..0a62f4b 100644 --- a/template/sdf.cl.mako +++ b/template/sdf.cl.mako @@ -13,9 +13,7 @@ __constant float3 center = (float3)(${geometry.size_x/2.5}, ${geometry.size_y/2} <%include file="sdf.lib.glsl.mako"/> -float sdf(vec3 v) { - ${sdf_src} -} +${sdf_src} __kernel void setup_channel_with_sdf_obstacle(__global int* material) { const unsigned x = get_global_id(0); -- cgit v1.2.3