-
-
Notifications
You must be signed in to change notification settings - Fork 36.1k
Closed
Description
Description
I'm sure with all the changes with TSL there may have been that method but it's no longer there.
When porting demos over I copied over a version of IQuilezles noised and didnt catch it until runtime that the conversion used the method.
// float k7 = - a + b + c - d + e - f - g + h;
const k7Wrong = a.negateBefore().add(b).add(c.sub(d)).add(e.sub(f).sub(g)).add(h); // wrong
const k7 = a.negate().add(b).add(c.sub(d)).add(e.sub(f).sub(g)).add(h); // correctReproduction steps
Go here: https://threejs.org/examples/?q=tsl#webgpu_tsl_transpiler
Put this: float k7 = - a + b + c - d + e - f - g + h;
Version
179
pmhnsunag