Skip to content

RoyInterface / Exports / resource/material/MatFocus / MatFocus

Class: MatFocus

resource/material/MatFocus.MatFocus

Hierarchy

Table of contents

Constructors

Properties

Accessors

Methods

Constructors

constructor

new MatFocus(suffix?): MatFocus

Parameters

NameType
suffix?string

Returns

MatFocus

Overrides

RoyMaterialTemplate.constructor

Properties

MatName

Static MatName: string = 'baseFocus'


m_suffix

Private m_suffix: string


templateName

templateName: string

Inherited from

RoyMaterialTemplate.templateName


canInstance

canInstance: number = 0

Inherited from

RoyMaterialTemplate.canInstance


canBatch

canBatch: boolean = false

Inherited from

RoyMaterialTemplate.canBatch


rayTraceSupport

rayTraceSupport: boolean = false

Inherited from

RoyMaterialTemplate.rayTraceSupport


editLightModeSupport

editLightModeSupport: boolean = false

Inherited from

RoyMaterialTemplate.editLightModeSupport


castShadow

castShadow: boolean = false

Inherited from

RoyMaterialTemplate.castShadow


receiveShadow

receiveShadow: boolean = false

Inherited from

RoyMaterialTemplate.receiveShadow


hasBaseColor

hasBaseColor: boolean = false

Inherited from

RoyMaterialTemplate.hasBaseColor


hasUVCoord

hasUVCoord: boolean = false

Inherited from

RoyMaterialTemplate.hasUVCoord


m_groupPriority

Protected m_groupPriority: Object = {}

Index signature

▪ [key: string]: number

Inherited from

RoyMaterialTemplate.m_groupPriority

Accessors

groupPriority

get groupPriority(): Object

Returns

Object

Inherited from

RoyMaterialTemplate.groupPriority

Methods

createMaterialInstance

createMaterialInstance(transDataInfo?): RoyMaterialInstance

Parameters

NameType
transDataInfo?RoyTransDataInfo

Returns

RoyMaterialInstance

Overrides

RoyMaterialTemplate.createMaterialInstance


getMaterialSpec

getMaterialSpec(): RoyMatInfo

Returns

RoyMatInfo

Overrides

RoyMaterialTemplate.getMaterialSpec


syncMatDataRT

syncMatDataRT(matInst, sceneImpl, offset): void

Parameters

NameType
matInstRoyMaterialInstance
sceneImplany
offsetnumber

Returns

void

Inherited from

RoyMaterialTemplate.syncMatDataRT


setGroupPriority

setGroupPriority(name, priority): void

Parameters

NameType
namestring
prioritynumber

Returns

void

Inherited from

RoyMaterialTemplate.setGroupPriority