Garry's Mod Wiki

Revision Difference

render.PushFilterMag#565358

<function name="PushFilterMag" parent="render" type="libraryfunc"> <description> Pushes (Adds) a texture filter onto the magnification texture filter stack. This will modify how textures are stretched to sizes larger than their native resolution for upcoming rendering and drawing operations. For a version of this same function that modifies filtering for texture sizes smaller than their native resolution, see <page text="render.PushFilterMin()">render.PushFilterMin</page> Always be sure to call <page text="render.PopFilterMag()">render.PopFilterMag</page> afterwards to avoid texture filtering problems. For a version of this same function that modifies filtering for texture sizes smaller than their native resolution, see <page>render.PushFilterMin</page> Always be sure to call <page>render.PopFilterMag</page> afterwards to avoid texture filtering problems. For more detailed information and a usage example, see <page text="the texture minification and magnification render reference.">render_min_mag_filters</page> ⤶ If current texture has more than 1 mipmap, this also sets the mipmap filter.⤶ </description> <realm>Client and Menu</realm> <args> <arg name="texFilterType" type="number">The texture filter to use. For available options, see <page>Enums/TEXFILTER</page></arg> </args> </function>