Interface ShaderEvaluator.TextureSampler
- Enclosing class:
ShaderEvaluator
public static interface ShaderEvaluator.TextureSampler
Reads a material texture for the evaluator.
-
Method Summary
Modifier and TypeMethodDescriptionvoidsample(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 itsShaderMaterial -
u: the horizontal coordinate -
v: the vertical coordinate -
out: receives red, green, blue and alpha, 0 to 1
-
-