glsl-combine-chamfer
Combine two signed distance fields with a chamfer-like join.
This technique was derived from a great talk at NVScene by Johann Korndörfer.
Usage
float combine(float d1, float d2, float radius)
Given two distances d1
and d2
, merge them together
within the supplied radius
.
uniform float iGlobalTime;# combine = require('glsl-combine-chamfer')# box = require('glsl-sdf-box')vec2
Contributing
See stackgl/contributing for details.
License
MIT. See LICENSE.md for details.