Returns the shader for a given intersection point.
Source
Shader getShader(Intersection intersect) {
PluggableShader ret = this._shader.clone();
ret.position = intersect.hitPoint;
ret.normal = equation.xyz;
return ret;
}
Returns the shader for a given intersection point.
Shader getShader(Intersection intersect) {
PluggableShader ret = this._shader.clone();
ret.position = intersect.hitPoint;
ret.normal = equation.xyz;
return ret;
}