MaterialFilteringMode()

语法

MaterialFilteringMode(#Material, Mode [, MaxAnisotropicValue])
概要
Changes the material filtering mode.

参数

#Material The material to use. If this parameter value is set to #PB_Default, the filtering mode value used for future created material is changed.
Mode It can be one of the following value:
  #PB_Material_None       : Don't filter the material which becomes very pixilated when the camera gets close.
  #PB_Material_Bilinear   : Performs a bilinear filtering when the camera gets close, resulting to a smooth, a bit blured picture.
  #PB_Material_Trilinear  : Performs a trilinear filtering when the camera gets close, resulting in the best picture quality possible.
  #PB_Material_Anisotropic: Set the maximum anisotropic value. 
When a material is created, the bilinear filtering is used by default. Using a filter doesn't have a big performance impact on the rendering, as many graphics cards do it using the hardware.
MaxAnisotropicValue (optional) The maximum anisotropic value, if the mode #PB_Material_Anisotropic is set. This value is usually between 1 and 8.

返回值

无.

已支持操作系统

所有

<- MaterialCullingMode() - Material Index - MaterialFog() ->