Latest version 9.10.1 breaks the GridMaterial with the transparent mainColor hack.
Version 9.10.0 works as expected.
Expected behavior:
If the material opacity is less than 1.0 the mainColor is rendered transparent and only the grid is visible.
Broken behavior in version 9.10.1:
The mainColor is rendered using the actual opacity value and no alternative is provided to render the GridMaterial with a transparent mainColor.
Recommended Fix:
Instead of providing a hack using opacity, maybe it is possible to allow the mainColor to be a Color4 instead of a Color3, or maybe add another property mainColorOpacity.
Code example that no longer works with version 9.10.1:
this._material = new GridMaterial(name+'Material', scene);
this._material.alphaMode = Engine.ALPHA_COMBINE;
this._material.backFaceCulling = false;
this._material.gridRatio = 0.1;
this._material.lineColor = new Color3(0.0, 0.0, 0.0);
this._material.mainColor = new Color3(0.0, 0.0, 0.0);
this._material.majorUnitFrequency = 10;
this._material.minorUnitVisibility = 0.2; // thin lines width multiplier
this._material.opacity = 0.99; // previously caused mainColor fully transparent.
this._mesh.material = this._material;

