webgl-dsl
    Preparing search index...

    Class Glsl<T>

    Type Parameters

    Index

    Constructors

    Properties

    getValue: (builder: GlslBuilder) => Value<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>