webgl-dsl
    Preparing search index...

    Class Glsl<T>

    Type Parameters

    Index

    Constructors

    • Type Parameters

      Parameters

      • getValue: (builder: GlslBuilder) => Readonly<{ content: string; type: T }>

      Returns Glsl<T>

    Properties

    getValue: (builder: GlslBuilder) => Readonly<{ content: string; type: T }>
    PI: Scalar = ...

    Methods

    • Conditional expression

      Type Parameters

      Parameters

      • this: Boolean
      • precision: Precision

        Precision of the expression result

      • whenTrue: T

        True brunch of the condition

      • whenFalse: T

        False brunch of the condition

      Returns T

    • Save some expression with high quality into a variable

      Returns Glsl<T>

    • Save some expression with low quality into a variable

      Returns Glsl<T>

    • Save some expression with medium quality into a variable

      Returns Glsl<T>