Hi everyone,
Please see here: Babylon.js Playground
When the PrePassRenderer requires a texture (PrePassEffectConfiguration: {texturesRequired}), the GreasedLine loses its color.
How can I make both work?
Best wishes
Joe
Hi everyone,
Please see here: Babylon.js Playground
When the PrePassRenderer requires a texture (PrePassEffectConfiguration: {texturesRequired}), the GreasedLine loses its color.
How can I make both work?
Best wishes
Joe
cc @roland
Interestingly it works with
materialType: B.GreasedLineMeshMaterialType.MATERIAL_TYPE_SIMPLE
I’ll check what’s the issue with the StandardMaterial.
The solution is to set the diffuseColor on the line.material instead of using the color property:
Maybe you would want to set the sizeAttenuation to true: