Options
All
  • Public
  • Public/Protected
  • All
Menu

@thi.ng/shader-ast-glsl

Index

Enumerations

Interfaces

Functions

Functions

Const targetGLSL

  • GLSL code gen, targets GLSL ES 3.00 (WebGL2) by default.

    Use options object to configure shader type and GLSL version: 100 for WebGL, 300 for WebGL2. Currently, the only differences in terms of code generation, not correctness, are:

    • attribute, varying, uniform declarations
    • texture lookup function naming

    Unsupported features in GLSL 100:

    • Fragment shader output vars

    Parameters

    Returns GLSLTarget

Generated using TypeDoc