Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ShaderMaterial

Hierarchy

Index

Constructors

Properties

_shader: IShader
coreData: CoreData
fragmentShader: any
name: string
vertexShader: any
shaderId: number

Accessors

  • get alpha(): number
  • set alpha(value: number): void
  • alpha测试值

    Returns number

  • alpha测试值

    Parameters

    • value: number

    Returns void

  • Returns BlendMode

  • Parameters

    Returns void

  • 设置depth function

    memberof

    Material

    Parameters

    Returns void

  • get isTransparent(): boolean
  • set isTransparent(value: boolean): void
  • Returns boolean

  • Parameters

    • value: boolean

    Returns void

  • Returns RenderFace

  • Parameters

    Returns void

  • Returns IShader

Methods

  • setMacro(key: string, enable: boolean): void
  • 设置宏

    Parameters

    • key: string

      宏键名

    • enable: boolean

      是否开启

    Returns void

  • setUniform(key: string, value: any): void
  • 设置Uniform

    Parameters

    • key: string

      uniform名称

    • value: any

      uniform值

    Returns void

Generated using TypeDoc