GLTFTextureSampler

继承: Resource < RefCounted < Object

Represents a glTF texture sampler

描述

Represents a texture sampler as defined by the base glTF spec. Texture samplers in glTF specify how to sample data from the texture's base image, when rendering the texture on an object.

属性


属性说明

int mag_filter = 9729

  • void set_mag_filter ( value: int )
  • int get_mag_filter ( )

Texture's magnification filter, used when texture appears larger on screen than the source image.


int min_filter = 9987

  • void set_min_filter ( value: int )
  • int get_min_filter ( )

Texture's minification filter, used when the texture appears smaller on screen than the source image.


int wrap_s = 10497

  • void set_wrap_s ( value: int )
  • int get_wrap_s ( )

Wrapping mode to use for S-axis (horizontal) texture coordinates.


int wrap_t = 10497

  • void set_wrap_t ( value: int )
  • int get_wrap_t ( )

Wrapping mode to use for T-axis (vertical) texture coordinates.

1

本方法通常需要用户覆盖才能生效。

2

本方法无副作用,不会修改该实例的任何成员变量。

3

本方法除了能接受在此处描述的参数外,还能够继续接受任意数量的参数。

4

本方法用于构造某个类型。

5

调用本方法无需实例,可直接使用类名进行调用。

6

本方法描述的是使用本类型作为左操作数的有效运算符。

7

这个值是由下列位标志构成位掩码的整数。

8

无返回值。