remove method

WebGLShaderCache remove(
  1. Material material
)

Implementation

WebGLShaderCache remove(Material material) {
  var materialShaders = materialCache[material];

  for (var shaderStage in materialShaders) {
    shaderStage.usedTimes--;

    if (shaderStage.usedTimes == 0) shaderCache.remove(shaderStage.code);
  }

  materialCache.remove(material);

  return this;
}