Skip to content

Does GLTFast support point texture sampling? #292

Answered by atteneder
wonkee-kim asked this question in Q&A
Discussion options

You must be logged in to vote

hi @wonkee-kim ,

Yes, that should work!

glTF supports texture samplers that let you choose the filters for minification and magnification. If you select 9728 (=Nearest) for both, you should have the desired effect (point filtering).

Sources:

https://www.khronos.org/registry/glTF/specs/2.0/glTF-2.0.html#_filtering
https://www.khronos.org/registry/glTF/specs/2.0/glTF-2.0.html#reference-sampler

Let me know if you experience issues.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@wonkee-kim
Comment options

Answer selected by atteneder
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants