setTexture abstract method

void setTexture(
  1. String name,
  2. GpuTexture texture, {
  3. GpuSampler sampler = GpuSampler.linearClamp,
  4. bool vertexStage = false,
})

Binds texture to the sampler uniform name of the fragment stage, or of the vertex stage when vertexStage (a joint palette, say).

Implementation

void setTexture(
  String name,
  GpuTexture texture, {
  GpuSampler sampler = GpuSampler.linearClamp,
  bool vertexStage = false,
});