shader-park / shader-park-core

A JavaScript library for creating real-time 2D and 3D shaders. JS -> Shader. https://shaderpark.com/ https://twitter.com/shaderpark

Home Page:https://shaderpark.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

repeat with overlap

Cdriko opened this issue · comments

Hello I try to repeat assemblies with a overlaping space, using the repeat function
in this example.
But the ovelapping parts of space is not rendered. Any idea to solve this problem ?
Maybe using another function?
Thanks

Hi!
You’re correct for noticing the cells when using repeat can’t overlap. What I recommend is doubling the spacing between the repeated assemblies, and then rendering multiple repeated instances offset to fill the space. For things which are repeated on all three axes would require quite a few extra draws though. That’s the best solution i think of at this moment!