Difference between revisions of "$PointSampleMagFilter"

From Valve Developer Community
Jump to: navigation, 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 23:37, 13 August 2019

Example of $pointsamplemagfilter set to 1 and 0.

$pointsamplemagfilter is a material shader parameter available in <Counter-Strike: Global Offensive> Counter-Strike: Global Offensive for LightmappedGeneric. It disables texture filtering on a material, leading to a pixelated look.

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 does work with blended materials, use this instead! )
Bug: This parameter may not work on older hardware.

VMT syntax example

$pointsamplemagfilter <bool>