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

slot int
the texture’s slot in its ShaderMaterial
u float
the horizontal coordinate
v float
the vertical coordinate
out float[]
receives red, green, blue and alpha, 0 to 1