Artefact at cube edge with low resolution texture

I’m encountering an issue with artefacts at the edge of a cube with an 8x8 texture.

See https://playground.babylonjs.com/#6XIT28#2974 (the right hand edge is the worst)

Perhaps related, when I use the default sampling mode, a yellow line appears where there are no yellow pixels (though I only care about getting it working with NEAREST_SAMPLINGMODE)

image

I’ve ruled out a GPU problem as several users tested this on varying different devices and also found the artefact

Does anyone have any thoughts on how to fix this, or if this could be a babylon bug?

This happens cause your UVs are trying to wrap around at the edge. you could try to clamp instead ? https://playground.babylonjs.com/#6XIT28#2975

3 Likes

Ah I see - I do need the UVs to wrap, bringing them in a small amount has fixed the problem

Thanks

1 Like