Everything cool, but then i realized i don’t have a way to change the material color because im using a shader mesh, basically i want to change the colors of the squares when I click them using a raycaster but before achieving that i need a way to update the colors but i want to keep the black edges like this:
How is that doable? It’s the first time I use a shader sorry, I wanna be able to change the color of the boxes individually after the scene is rendered
this is already closed and i just wanted to show my results after your tips: 3Dtch-a-Sketch (portareset1.github.io)
im new to coding, started in february so is not that good
Sorry for digging up an old thread. I am trying this way, it works great, but for some reason the colours set are usually rendered in darker shade.
Eg. if I set white 0xffffff , this renders exactly as white, so does red 0xff0000. But other colours just render darker, eg. setting 0xaaaaaa renders as #676767, #dd0000 renders as #b90000 etc.
Is this the expected behaviour of the shader or how can I display exactly the color I set? Thanks so much.