Cheap round-edged box (vertex shader)

Ended up porting @Fyrestar’s approach to JavaScript.

I don’t like the UVs I managed to get, but should do the trick for now.

3 Likes

@prisoner849 @Fyrestar what is the best way in this shader to set the radius diffrent for y,x,z?

I didn’t get, how it has to look like :thinking:
Any reference picture?

similar to RoundEdgedBoxFlat