• AnyOldName3@lemmy.world
    link
    fedilink
    arrow-up
    14
    ·
    1 day ago

    No, don’t use CLAMP, use CLAMP_TO_EDGE. CLAMP is a dumb mode for niche applications that all switched to using shaders around the turn of the millennium. No GPUs have direct hardware support for CLAMP and so they have to emulate it instead. You are throwing performance away for no reason.

    (also, technically, the image is using CLAMP_TO_EDGE as CLAMP is a 50% mix of the border colour and the edge pixel colour, so it would be greyer if the border colour is grey like the first image suggests.)