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.)
10 Comments
Postmortal_Pop@lemmy.world · 42 pts · 15d
You're missing the ever ilusive "stretch-to-fit collie"
kubica@fedia.io · 14 pts · 15d
Is someone here implying distorting the aspect ratio of picture? I hope not.
AnyOldName3@lemmy.world · 14 pts · 15d
No, don't use
CLAMP, useCLAMP_TO_EDGE.CLAMPis a dumb mode for niche applications that all switched to using shaders around the turn of the millennium. No GPUs have direct hardware support forCLAMPand so they have to emulate it instead. You are throwing performance away for no reason.(also, technically, the image is using
CLAMP_TO_EDGEasCLAMPis 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.)0ops@piefed.zip · 14 pts · 15d
SkunkWorkz@lemmy.world · 7 pts · 15d
Used clamp to edge. How would you get a small cylinder (5.1in length, ~4.5in girth) unstuck from a clamp?
Sadbutdru@sopuli.xyz · 4 pts · 15d
Bloody small cylinders, always getting stuck in things!
SippyCup@lemmy.world · 3 pts · 15d
Do you care what happens to the cylinder?
AnyOldName3@lemmy.world · 3 pts · 15d
Obviously it cannot be damaged.
Primor@lemmy.world · 1 pts · 15d
And the infinite happiness
AstralPath@lemmy.ca · 1 pts · 15d
So the tesseract in interstellar was just 3D clamp? Seems like it