Hi - i’m trying to port a shader from shadertoy which uses imported image textures. On shadertoy the images are set to wrap repeat. Is there a way of setting the wrap for images imported into an ISF ?
cheers _ Howie
You can’t set the wrap repeat for ISF, but often this is easily achievable with a small bit of math in your shader itself.
Feel free to send me the specific code if you need help figuring it out, probably something like, coord = mod(coord,1.0)
Thanks David, that sorted it. I could see there was a fix like that but couldn’t find the function. I use mod a lot for looping integers - just hadn’t quite seen it in the simple terms of a range like function.
1 Like