跳到主要内容

GLSamplerDescriptor

Ploy3D / GLSamplerDescriptor

Interface: GLSamplerDescriptor

GL采样器描述符。

Table of contents

Properties

Properties

addressModeU

Readonly addressModeU: "repeat" | "clamp-to-edge" | "mirror-repeat"

X方向选址模式。


addressModeV

Readonly addressModeV: "repeat" | "clamp-to-edge" | "mirror-repeat"

Y方向选址模式。


addressModeW

Readonly addressModeW: "repeat" | "clamp-to-edge" | "mirror-repeat"

Z方向选址模式。


compare

Optional Readonly compare: "not-equal" | "always" | "never" | "less" | "equal" | "less-equal" | "greater" | "greater-equal"

测试采样的测试方法。


label

Readonly label: string

描述标签。


lodMaxClamp

Optional Readonly lodMaxClamp: number

最大LOD级别限制。


lodMinClamp

Optional Readonly lodMinClamp: number

最小LOD级别限制。


magFilter

Readonly magFilter: "linear" | "nearest"

放大采样过滤模式。


maxAnisotropy

Optional Readonly maxAnisotropy: number

最大各向异性值(默认1,各向同性)。


minFilter

Readonly minFilter: "linear" | "nearest"

缩小采样过滤模式。


mipmapFilter

Readonly mipmapFilter: "linear" | "nearest"

LOD采样过滤模式。