setValueV1f method

void setValueV1f(
  1. RenderingContext gl,
  2. dynamic v, [
  3. WebGLTextures? textures
])

Implementation

void setValueV1f(RenderingContext gl, v, [WebGLTextures? textures]) {
  final cache = this.cache;

  if (cache[0] == v) return;
  gl.uniform1f(addr, v.toDouble());

  cache[0] = v;
}