Interface ShaderEvaluator.TextureSampler

Enclosing class:
ShaderEvaluator

public static interface ShaderEvaluator.TextureSampler
Reads a material texture for the evaluator.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    sample(int slot, float u, float v, float[] out)
    Samples a texture.
  • Method Details

    • sample

      void sample(int slot, float u, float v, float[] out)

      Samples a texture.

      Parameters
      • slot: the texture's slot in its ShaderMaterial

      • u: the horizontal coordinate

      • v: the vertical coordinate

      • out: receives red, green, blue and alpha, 0 to 1