Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ASpriteShader

Hierarchy

Index

Constructors

constructor

Properties

_defaults

_defaults: {}

Type declaration

  • [name: string]: any

Protected _eventCallbackDicts

_eventCallbackDicts: {} = {}

Type declaration

Protected _parent

_parent: null | AObjectNode

Protected _shaderSettings

_shaderSettings: ShaderMaterialParameters

Protected _shaderSource

_shaderSource: ShaderProgramSource

Protected _subscriptions

_subscriptions: {} = {}

Type declaration

children

children: AObjectNode[]

materialClass

materialClass: ClassInterface<Material>

name

name: string

sharedParameters

sharedParameters: {}

Type declaration

  • [name: string]: any

sharedUniforms

sharedUniforms: ShaderUniformDict

state

state: {} = {}

Type declaration

  • [name: string]: any

textures

textures: {} = {}

Type declaration

uid

uid: string

uniforms

Static AObjectStateKeys

AObjectStateKeys: string[] = []

Static AObjectVersion

AObjectVersion: number = 1

Static Events

Events: typeof AModelEvents = ...

Accessors

ClassConstructor

  • get ClassConstructor(): typeof AObject

defaults

  • get defaults(): ParamInterface
  • set defaults(v: ParamInterface): void

fragSource

  • get fragSource(): string

parent

rendersWireframe

  • get rendersWireframe(): undefined | boolean

serializationLabel

  • get serializationLabel(): any

settingArgs

  • get settingArgs(): ShaderMaterialParameters

sourcesLoadedPromise

stateSnapshop

  • get stateSnapshop(): {}

supportsTransparency

  • get supportsTransparency(): undefined | boolean

usesLights

  • get usesLights(): undefined | boolean

usesVertexColors

  • get usesVertexColors(): undefined | boolean

vertexSource

  • get vertexSource(): string

Methods

CreateMaterial

_CreateTHREEJS

  • _CreateTHREEJS(): Material

_attachToNewParent

_childrenListToUIDs

  • _childrenListToUIDs(childrenList: AObjectNode[]): string[]

_getEventCallbackDict

_getListeners

  • _getListeners(): {}

_removeChild

  • _removeChild(child: AObjectNode, triggerNewParentEvent?: boolean): void

_removeFromParent

  • _removeFromParent(triggerNewParentEvent?: boolean): void

_uidsToChildrenList

activateSubscription

  • activateSubscription(name: string): void

addChild

addEventListener

  • addEventListener(eventName: string, callback: (...args: any[]) => void, handle?: string): AEventCallbackSwitch

addEventListeners

  • addEventListeners(eventName: string, callbacks: ((...args: any[]) => void)[], handle?: string): AEventCallbackSwitch

addOneTimeEventListener

  • addOneTimeEventListener(eventName: string, callback: (...args: any[]) => void, handle?: string): AEventCallbackSwitch

addStateKeyListener

  • addStateKeyListener(state_key: string, callback: (self: AObject) => void, handle?: string, synchronous?: boolean): AStateCallbackSwitch
  • Sets a callback function to be called whenever the state specified in state_key changes. The return value callbackSwitch is a callback switch. You can activate the listener with callbackSwitch.activate() and deactive with callbackSwitch.deactivate(). Example Usage:

    var callbackswitch = model.addStateKeyListener('name',()=>{
    n_name_changes = n_name_changes+1;
    })

    Parameters

    • state_key: string

      the name of the state to listen to

    • callback: (self: AObject) => void

      the callback to be executed when state changes

    • Optional handle: string

      the handle / unique identifier for

    • synchronous: boolean = true

      whether callbacks should happen synchronously or allow for batching

    Returns AStateCallbackSwitch

addStateListener

  • addStateListener(callback: (self: AObject) => void, handle?: string, synchronous?: boolean): AStateCallbackSwitch

clearSubscriptions

  • clearSubscriptions(): void

deactivateSubscription

  • deactivateSubscription(name: string): void

dispose

  • dispose(): void

filterChildren

filterDescendants

getCameraNodes

  • getCameraNodes(): void

getChildWithID

getDescendantList

getMaterialGUIParams

  • getMaterialGUIParams(material: AMaterial): {}

getTexture

  • getTexture(name: string): undefined | ATexture

getTextureGUIParams

  • getTextureGUIParams(material: AShaderMaterial): { Textures: FolderInput<unknown> }

getUniformValue

  • getUniformValue(name: string): any

mapOverChildren

  • mapOverChildren(fn: (child: AObjectNode) => void | any[]): (void | any[])[]

mapOverDescendants

  • mapOverDescendants(fn: (child: AObjectNode) => void | any[]): (void | any[])[]

release

  • release(...args: any[]): void

releaseChildren

  • releaseChildren(...args: any[]): (void | any[])[]

removeChild

removeChildren

  • removeChildren(): (void | any[])[]

removeEventListener

  • removeEventListener(eventName: string, handle: string): void

removeListener

  • removeListener(handle: string): void

reorderChildren

  • reorderChildren(uidList: string[]): void

reparent

setShader

  • setShader(shaderName: string): void

setSharedParam

  • setSharedParam(name: string, val: any): void

setSharedParameters

  • setSharedParameters(params: {}): void

setTexture

  • setTexture(name: string, texture?: string | ATexture): void

setUniform

  • setUniform(name: string, value: any, type?: string): void

setUniformsDict

signalEvent

  • signalEvent(eventName: string, ...args: any[]): void

subscribe

toJSON

  • toJSON(): {}

unsubscribe

  • unsubscribe(name: string, errorIfAbsent?: boolean): void

Static CreateWithState

  • CreateWithState(state: {}): AObject

Static MaterialGUIColorControl

  • MaterialGUIColorControl(material: AMaterial, paramKey?: string): {}

Static MaterialGUIControl

  • MaterialGUIControl(material: AMaterial, paramName: string, defaultValue: any, otherSpecs: {}): {}

Static SerializationLabel

  • SerializationLabel(): any

Static ShaderTextureGUIUpload

  • ShaderTextureGUIUpload(material: AShaderMaterial, paramName: string, otherSpecs?: {}): {}

Static ShaderUniformGUIColorControl

  • ShaderUniformGUIColorControl(material: AShaderMaterial, paramKey?: string): {}

Static ShaderUniformGUIControl

  • ShaderUniformGUIControl(material: AShaderMaterial, paramName: string, defaultValue: any, otherSpecs: {}): {}

Static fromJSON

Generated using TypeDoc