Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ShaderMixer

Hierarchy

  • ShaderMixer

Index

Methods

Methods

Static generate

  • generate(type: number, macros: object, code: string, geometry: Geometry): string
  • Generate shader code from specified macro and codes.

    Parameters

    • type: number

      WebGLRenderingContext.VERTEX_SHADER or WebGLRenderingContext.FRAGMENT_SHADER

    • macros: object

      macro hash to be included

      • [key: string]: string
    • code: string

      shader body(Raw glsl)

    • geometry: Geometry

    Returns string

    generated shader code

Generated using TypeDoc