I have written a custom shader to be applied to shapes, and is applying correctly. For some reason, if I create custom shape using beginShape() the shader is not applied even though it hasn’t been reset. Any pointers on what is need to apply the same shader to custom shapes would be appreciated. Here is the sketch:
Shaders do work with beginShape/endShape, so the problem is probably with your shader logic. You are most likely making a bad assumption about vertex coordinates or something:
Specifically it looks like the issue is that you aren’t specifying UV coordinates for your vertices.
@KumuPaul thanks a bunch, seems to have fixed it. In Processing java I believe you don’t need to supply the UV coordinates, maybe autogenerated? Anyway, happy its not a larger bug.