跳到主要内容

Shader

Ploy3D / Shader

Interface: Shader

着色器。

Hierarchy

Table of contents

Properties

Properties

asset

asset: ShaderAsset

着色器资产。


branchKeys

branchKeys: string[]

分支健数组。


customID

customID: number

用户定义ID。


fscode

fscode: string

资源绑定组代码。

Inherited from

PropLayout.fscode


group

group: number

资源组索引。

Inherited from

PropLayout.group


id

id: number

着色器ID。


name

name: string

着色器唯一名称。


refCount

refCount: number

着色器引用计数。


textureCode

Optional textureCode: Object

着色器贴图和采样器绑定、贴图采样代码相关。

Type declaration

NameType
fscodestring[]
samplers[number, number, string, number?][]
vscodestring[]

tuple

tuple: PropTuple

资源绑定组属性元组。

Inherited from

PropLayout.tuple


vscode

vscode: string

资源绑定组代码。

Inherited from

PropLayout.vscode