Hi,
So we’re testing out Defold as a way of doing a HTML port of one of our unity titles. We have a pretty long running SVG -> Unity Meshes pipeline that basically converts illustrator files into meshes that only have vertex position and vertex colors. I’ve written an exporter from unity to DAE to get stuff into Defold.
Here’s the problem. I understand that Vertex Colors aren’t a thing in the Defold pipeline so I tried the swap colors for normals hack. Only to find that all the normals are normalised before they get to the shader so the colors become very broken. I’ve also tried encoding color as a rotation vector, throwing that in the normal and pulled it back out in the shader and the colors are still not right.
At this point I’m considering creating a texture of single pixel colors and creating UV’s that map to those pixels. Does anyone have a better idea?
Would love some help.
Matt