Changing blending mode to NEAREST_NEIGHBOR?
Moderators: CEGUI MVP, CEGUI Team
-
- Just popping in
- Posts: 2
- Joined: Fri Mar 16, 2018 23:29
Changing blending mode to NEAREST_NEIGHBOR?
Hello, I would like to change the Blending on the textures when they are scaled to not be blurry, how would I do that?
Re: Changing blending mode to NEAREST_NEIGHBOR?
in CEGUI 0.X we use bilinear filtering for up and downscaling. For 1.X we will use trilinear filtering so that downscaling won't get blurry anymore.
I assume your issue lies with downscaling? Because with upscaling, nearest neighbor filtering wont help much.
But to answer your question: Just modify your Renderer to use nearest neighbour filtering in all cases. You did not specify anything so you need to figure this out on your own... It is easy and should be pretty safe, as long as all your widget windows are set to be positioned and sized in pixel-correct fashion, which is the default anyway..
I assume your issue lies with downscaling? Because with upscaling, nearest neighbor filtering wont help much.
But to answer your question: Just modify your Renderer to use nearest neighbour filtering in all cases. You did not specify anything so you need to figure this out on your own... It is easy and should be pretty safe, as long as all your widget windows are set to be positioned and sized in pixel-correct fashion, which is the default anyway..
CrazyEddie: "I don't like GUIs"
Who is online
Users browsing this forum: Google [Bot] and 9 guests