I am working on the implementation of a face normal projection mode for texture painting.
As a first approach, I created a function that recalculates the screen coordinates of the vertices with a fake view based on the normal of the face that is being processed in project_paint_face_init()
. I am updating these screen coordinates just before project_bucket_clip_face()
is called. I think the projection is working fine, but it is giving me these artifacts:
Is there a better place where I can update the screen coordinates? Is there an efficient way to update it per input sample?
Thank you for your help.