Open rhumbaflappy opened 1 year ago
I should have stated Vertex painting has no alpha in Blender. If you use a imported BIN file with alpha in the vertex color attribute, then the alpha will get passed along to MSFS. The Alpha can be left alone, as is. You just need to mix the vertex color with the Base color as I showed above.
CorrectedMetalPlateCubePainted.zip
This actually works right. The color attributes (vertex color) is applied as the last step in the shader.
This issue should be flagged as an enhancement request also. I see great benefit to scenery developers with this feature. Also aircraft developers can "see" the icing, scratches, dirt and fingerprint texture blending.
Current Behavior
Vertex painting in the shader is only used for Alpha manipulation... which is odd as Vertex colors have no alpha
Current shader:
Expected Behavior
The vertex colors should be mixed or multiplied with the base color, with no use of the vertex paint alpha. This allows color tinting of vertex or face without the need for a new material. Asobo uses vertex coloring in this manner ( for example: Isafjordur_Building01). Corrected shader:
Steps To Reproduce
Use vertex painting in Blender to alter the coloring of a textured object using MSFS materials. The material is unaffected, whereas material coloring should occur.
Environment
Anything else?
DefaultMetalPlateCubePainted.zip CorrectedMetalPlateCubePainted.zip