Client API. The Codename One framework your app is built on: this runs on the device, not in a backend.
public interface ShaderEvaluator.TextureSampler
Reads a material texture for the evaluator.
Methods
public abstract void sample(int slot, float u, float v, float[] out) | Samples a texture. |
Method details
sample
public abstract void sample(int slot, float u, float v, float[] out)Samples a texture.
Parameters
slotint- the texture’s slot in its
ShaderMaterial ufloat- the horizontal coordinate
vfloat- the vertical coordinate
outfloat[]- receives red, green, blue and alpha, 0 to 1