aboutsummaryrefslogtreecommitdiff
path: root/template
diff options
context:
space:
mode:
authorAdrian Kummerlaender2019-12-31 16:59:52 +0100
committerAdrian Kummerlaender2019-12-31 16:59:52 +0100
commit3d5fbbd83b18b901deb95c9670408170a73b45cc (patch)
tree2f89f110d4d2dff135283070ed03fa7ce316e770 /template
parente399841b70683013ebdc9f6bcb31a871fef33db2 (diff)
downloadsymlbm_playground-3d5fbbd83b18b901deb95c9670408170a73b45cc.tar
symlbm_playground-3d5fbbd83b18b901deb95c9670408170a73b45cc.tar.gz
symlbm_playground-3d5fbbd83b18b901deb95c9670408170a73b45cc.tar.bz2
symlbm_playground-3d5fbbd83b18b901deb95c9670408170a73b45cc.tar.lz
symlbm_playground-3d5fbbd83b18b901deb95c9670408170a73b45cc.tar.xz
symlbm_playground-3d5fbbd83b18b901deb95c9670408170a73b45cc.tar.zst
symlbm_playground-3d5fbbd83b18b901deb95c9670408170a73b45cc.zip
Improve SDF rendering quality, performance
Diffstat (limited to 'template')
-rw-r--r--template/sdf.cl.mako4
1 files changed, 1 insertions, 3 deletions
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);