Assuming that we have an object and a 3D mesh. Is it possible to colorize the 3D mesh based on the value of the dot product produced when using the position of the 3D object and the normals of the mesh?
You just described how lighting is done in real time graphics, so yes.
You’ll need to be more specific about your question.
I would like to colorize the parts of the mesh to a red color when the dot product between a game object and the normals is between 0 and 1 and with blue color any other part of the mesh (-1 to 0 value of dot product).
What does the “game object” represent in this case? A normal is a per vertex float3, what float3 is a game object?