3 ms·
> sin might be rather expensive on your GPU targets Definitely depends on hardware, but I learned recently that on my NVIDIA GPU, the transcendentals are actua
by dahart 8y ago
> sin might be rather expensive on your GPU targets
Definitely depends on hardware, but I learned recently that on my NVIDIA GPU, the transcendentals are actually in a separate pipeline, so they are free as long as you don't do too many of them! The 3 term sin approximation in the article might be slower than calling sin(), on my GPU it'd crowd the arithmetic pipe.
> This is very similar to a smoothstep, which explains why smoothstep techniques for this kind of filtering works so well.
Seems like most of the filtering I see in ShaderToy uses smoothstep(). I sort-of assumed it was a hack of convenience and availability, but it's nice to see there's some justification for using smoothstep! I'm tempted to try this pseudo-bandlimited filtering on ShaderToy.