Texture Filtering

Saturday, October 27, 2012

Something has annoyed me in GMod for years. You know how when people draw text, or a HTML panel in the world it looks all pixelly? Well yeah that's annoyed me. So I took 5 minutes to add these functions in the next update.

render.PushFilterMin( TEXFILTER.ANISOTROPIC ); render.PushFilterMag( TEXFILTER.ANISOTROPIC ); render.DrawSprite( .. blah .. ) render.PopFilterMin(); render.PopFilterMag();

These allow you to force the texture filter mode to a certain value - and ignore the filter value set in the textures. *Min is the filtering to use when the texture is smaller than its size on screen, *Mag is the filter to use when it's larger (magnified). Modes are:

TEXFILTER.NONE (force normal behaviour) TEXFILTER.POINT TEXFILTER.LINEAR TEXFILTER.ANISOTROPIC

More Rubbish

Your Portfolio Gave Me Diarrhea

Friday, October 1, 2021

Motivation

Friday, September 24, 2021

We got married

Thursday, September 16, 2021

Unity Quiz

Sunday, September 6, 2020

Everything We Watched In Lockdown

Thursday, September 3, 2020

Toybox Torrent

Tuesday, October 23, 2012

Toybox Disabled

Monday, October 22, 2012

Snack Chair

Saturday, October 20, 2012

Coffee Shirt

Saturday, October 20, 2012

Crash Dump

Thursday, October 18, 2012