Tested versions
4.0.4, 4.2, 3.5
System information
macOS 14.4 (23E214) Godot 4.2, 4.0.4
As shown in the figure above, add a mesh to the sample project, and add an shaderMaterial to surfaceMaterialOverride, set the shader script to alpha.gdshader, and blendermode to mix. Create a shaderMaterial that is the next pass of the previous shaderMaterial, and set the shader script to alpha1.gdshader, and blendermode to mul.
Both shader scripts only set the color to white, expecting that white and white will result in a white result, but the returned result is too dark. (rgb is 218, 222, 229)
alpha.gdshader:
alpha1.gdshader:
This is the image of the result, and the color of the large background meshinstance in the image is pure white:
demo: