$pointsamplemagfilter: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Added image)
(added VTF PS blend compatibility, syntax sample, unstubbed)
Line 1: Line 1:
{{stub}}
[[File:$pointsamplemagfilter.png|thumb|Example of $pointsamplemagfilter set to 1 and 0.]]
[[File:$pointsamplemagfilter.png|thumb|Example of $pointsamplemagfilter set to 1 and 0.]]


{{Shaderparam|$pointsamplemagfilter|shader1=LightmappedGeneric|game=Counter-Strike: Global Offensive}} It disables texture filtering on a material, leading to a pixelated look.
{{Shaderparam|$pointsamplemagfilter|shader1=LightmappedGeneric|game=Counter-Strike: Global Offensive}} It disables texture filtering on a material, leading to a pixelated look.
{{note|A similar effect can be achieved by enabling Point Sampling in a material's [[VTF]] file.}}
{{note|Not compatible with blended displacement materials.}}
{{note|Not compatible with blended displacement materials.}}
{{note|A similar effect can be achieved by enabling Point Sampling in a material's [[VTF]] file. ( Which <i>does</i> work with blended materials, use this instead! )}}
{{bug|This parameter may not work on older hardware.}}
{{bug|This parameter may not work on older hardware.}}
== VMT syntax example ==
$pointsamplemagfilter <[[bool]]>


[[Category:List of Shader Parameters|P]]
[[Category:List of Shader Parameters|P]]

Revision as of 16:37, 13 August 2019

Example of $pointsamplemagfilter set to 1 and 0.

Template:Shaderparam It disables texture filtering on a material, leading to a pixelated look.

Note.pngNote:Not compatible with blended displacement materials.
Note.pngNote:A similar effect can be achieved by enabling Point Sampling in a material's VTF file. ( Which does work with blended materials, use this instead! )
Icon-Bug.pngBug:This parameter may not work on older hardware.  [todo tested in ?]

VMT syntax example

$pointsamplemagfilter <bool>