antialias works nice, mostly.
I use PBRMaterials, reflecting the sunlight (as DirectionalLight)
and only at certain flat angles the sun gets reflected remarkably, as expected.
But the reflection causes Moiré patterns.
engine.setHardwareScalingLevel(0.5) does help but increases the render time. My fan starts running.
pbrMaterial._enableSpecularAntiAliasing = true; or
pbrMaterial.enableSpecularAntiAliasing = true; did not show any difference.
A more detailed texture will help, but cause other loads.
Is the antialiasing function used for the reflections?
Thank you for your fast answer.
I do not load a glb file and do not use a 3D editor, just plain “new BABYLON.PBRMaterial”.
And I use one file with 3 textures:
material.useAmbientOcclusionFromMetallicTextureRed = true;
material.useMetallnessFromMetallicTextureBlue = true;
material.useRoughnessFromMetallicTextureGreen = true;
May be “material.updateSamplingMode(BABYLON.Texture.TRILINEAR_SAMPLINGMODE)” could be usefull? Not in my test.
Yes! There you are: https://playground.babylonjs.com/#X6G5HH
Just start it and you will see the moiré patterns.
They change with the distance.
Somme optional lines are in comments.
Sorry for my late response.
Sure, if HemisphericLight is less used, the BJS-AntiAliasing-Error/effect is less visible. But still exists in BJS.
To use scene.environmentTexture instead is a great idea. I must create a .env with a dominating strong sun and check, if it shows up on the BPR material.
…