Page 1 of 1

Texture map filtering

Posted: Wed Jul 07, 2021 9:41 am
by Dade
This has been asked a couple of times, I assume to do some pixel art. I have added the support for "nearest" texture map filtering:

near.jpg

The image map filtering can be selected using the .filter property:

Code: Select all

scene.textures.140707097861640Color.type = "imagemap"
scene.textures.140707097861640Color.file = "scenes/randomizedtiling/pattern-3.jpg"
# "nearest" or "linear" (default)
scene.textures.140707097861640Color.filter = nearest