//modificado para annadir el ModelGraphic a info private bool Intersect(Ray r, ModelGraphic model, out IntersectionInfo info) { if (Intersecter.Intersect(r, model.Model, out info)) { info.ModelGraphic = model; return true; } return false; }
//modificado public LightSource(vec3 position, vec4 intensity, ModelGraphic modelGraphicLight) { Position = position; Intensity = intensity; ModelGraphic = modelGraphicLight; }