Пример #1
0
 //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;
 }
Пример #2
0
 //modificado
 public LightSource(vec3 position, vec4 intensity, ModelGraphic modelGraphicLight)
 {
     Position = position;
     Intensity = intensity;
     ModelGraphic = modelGraphicLight;
 }