Shader getShader(Intersection intersect)

Returns the shader for a given intersection point.

Source

Shader getShader(Intersection intersect) {
  PluggableShader ret = this._shader.clone();

  ret.position = intersect.hitPoint;

  return ret;
}