summaryrefslogtreecommitdiff
path: root/common/shaders/render/raymarching_id.wgsl
diff options
context:
space:
mode:
Diffstat (limited to 'common/shaders/render/raymarching_id.wgsl')
-rw-r--r--common/shaders/render/raymarching_id.wgsl2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/shaders/render/raymarching_id.wgsl b/common/shaders/render/raymarching_id.wgsl
index 42be02d..d9f32b2 100644
--- a/common/shaders/render/raymarching_id.wgsl
+++ b/common/shaders/render/raymarching_id.wgsl
@@ -51,7 +51,7 @@ fn reconstructPosition(ray: Ray, result: RayMarchResult) -> vec3f {
// Normal calculation using dfWithID.
fn normalWithID(pos: vec3f) -> vec3f {
- let eps = vec2<f32>(NORM_OFF, 0.0);
+ let eps = vec2f(NORM_OFF, 0.0);
var nor: vec3f;
nor.x = dfWithID(pos + eps.xyy).distance - dfWithID(pos - eps.xyy).distance;
nor.y = dfWithID(pos + eps.yxy).distance - dfWithID(pos - eps.yxy).distance;