Options
Menu

Class CompilerBase

CompilerBase is an abstract base class for shader compilers that use modular shader methods to assemble a material. Concrete subclasses are used by the default materials.

see

away.materials.ShadingMethodBase

Hierarchy

  • CompilerBase

Index

Constructors

constructor

Properties

Protected _elementsClass

_elementsClass: IElementsClassGL

Protected _fragmentCode

_fragmentCode: string

Protected _postAnimationFragmentCode

_postAnimationFragmentCode: string

Protected _registerCache

_registerCache: ShaderRegisterCache

Protected _renderPass

_renderPass: IPass

Protected _shader

_shader: ShaderBase

Protected _sharedRegisters

_sharedRegisters: ShaderRegisterData

Protected _vertexCode

_vertexCode: string

Accessors

fragmentCode

  • get (): string
  • The generated fragment code.

    Returns string

postAnimationFragmentCode

  • get (): string
  • The generated fragment code.

    Returns string

registerCache

  • The shared registers.

    Returns ShaderRegisterCache

sharedRegisters

  • The shared registers.

    Returns ShaderRegisterData

vertexCode

  • get (): string
  • The generated vertex code.

    Returns string

Methods

compile

  • compile(): void
  • Compiles the code after all setup on the compiler has finished.

    Returns void

compileNormalCode

  • compileNormalCode(): void
  • Calculate the normal.

    Returns void

compileViewDirCode

  • compileViewDirCode(): void
  • Calculate the view direction.

    Returns void

dispose

  • dispose(): void
  • Disposes all resources used by the compiler.

    Returns void

pCompileDependencies

  • pCompileDependencies(): void
  • Compile the code for the methods.

    Returns void

pInitRegisterIndices

  • pInitRegisterIndices(): void
  • Reset all the indices to "unused".

    Returns void

Generated using TypeDoc