StanislavPetrovV / Procedural-3D-scene-Ray-Marching

Procedural 3D scene Ray Marching
MIT License
27 stars 11 forks source link

Line 64 in fragment.glsl has an error #3

Open jwwilliams1994 opened 1 year ago

jwwilliams1994 commented 1 year ago

As-written, line 64 is: pMod1(p.z, 15);

This makes the glsl fail to compile as the 15 is implicitly an int, and no function pMod1 exists that takes an int as the second parameter. The solution is to add the missing floating point to the 15 such that the line reads: pMod1(p.z, 15.);