Sorry, but cant make a playground, as am not the actual developer, just trying to see if someone can help with a code fix, as this current implementation seems to mess up all the PNG textures.
the current code below should of solved the problem of jagged edges of transparent PNGs,
const fixProductEdgePixelation = featureFlagStore.getFeatureFlagStatus(FEATURE_FLAG_NAMES.FIX_PRODUCT_EGDE_PIXLATION);
if (fixProductEdgePixelation) {
material.opacityTexture.updateSamplingMode(BABYLON.Texture.NEAREST_NEAREST);
}
However, as you can see in the images attached, it does the opposite and screws up the whole PNG image.
DEFAULT_ANISOTROPIC_FILTERING_LEVEL is a value for the anisotropicFilteringLevel property, not for the sampling mode.
The values that can be passed to updateSamplingMode are the ones like BABYLON.Constants.TEXTURE_LINEAR_LINEAR or BABYLON.Constants.TEXTURE_BILINEAR_SAMPLINGMODE:
Hum? I’m also no dev. I’m a simple designer. Devs always think they will fix something inappropriate through some fancy post. I say: Give me a proper source and I can make it better. Give me a piece of st, and I’ll make it a piece of st with FX
Anyone ever thought of just making a proper source? https://media-geneva.ch/demos/bjs/forum/cola-png-debug.html
Hi Seb, can you recommend anyone advanced enough to help us debug and fix this? not easy to create a playground thing at the moment! please DM me if you can