In the vex builder, how can I create a checkboard pattern? I saw the “Ginham checks” but I still want a checkboard pattern to do some shader testing.
pls help!
Simon
You need to combine two stripe vops together. Wire a global s into the s input of one and then the global t into the s input of the second. This should give you two sets of stripes at 90 degrees to each other. Next multply the outputs together and also take the complement of each and multiply them together too. Finally use a compare and a two way switch to always pick the greater of the two results.
I'll post a shader on exchange if you get stuck.
(RFE: to Sesi this would be a very useful standard shader to have)
However you might want to consider making one with a small bitmap and a VEX decal shader, that way you can see the checker in the viewport.
Simon
(Didn't even know there was a Boxes VOP :? )