julhe / julhe.github.io

https://julhe.github.io/
0 stars 0 forks source link

posts/always_sharp_sdf_textures/ #2

Open utterances-bot opened 7 months ago

utterances-bot commented 7 months ago

Always-Sharp SDF Textures : julhe.github.io

A dive into texture filtering.

https://julhe.github.io/posts/always_sharp_sdf_textures/

ancatut commented 7 months ago

Nice article! While reading I did wonder about a specific aspect:

This is also the reason why even a triangle that is just 1x1 pixels large still generates workload for 2x2 pixels.

Is a single pixel considered a triangle? Wouldn't that be just a vertex in computer graphics terms?

julhe commented 7 months ago

Nice article! While reading I did wonder about a specific aspect:

This is also the reason why even a triangle that is just 1x1 pixels large still generates workload for 2x2 pixels.

Is a single pixel considered a triangle? Wouldn't that be just a vertex in computer graphics terms?

The pipeline is: vertex -> (triangle) -> pixel -> screen. Three individual vertices form a triangle, so even if that triangle ends up being just 1x1 pixels big, it's still a triangle.