コード例 #1
0
 /// <summary>
 /// Passes the Component to the SceneVisitor which decides what to do with that Component.
 /// </summary>
 /// <param name="sv">The SceneVisitor instance updates the position of this pointlight according to the transformation of the pointlights parent.</param>
 public override void Accept(SceneVisitor sv)
 {
     if (SceneEntity != null)
     {
         _position = SceneEntity.transform.GlobalPosition * SceneManager.RC.View;
     }
     sv.Visit((PointLight)this);
 }
コード例 #2
0
 /// <summary>
 /// Accept is called by the current visitor. This function is currently used for traversal and search algorithms by the SceneManager object. 
 /// </summary>
 /// <param name="sv">The visitor that is currently traversing the scene.</param>
 public override void Accept(SceneVisitor sv)
 {
     if (SceneEntity != null)
     {
         _direction = SceneEntity.transform.Forward * new float3x3(SceneManager.RC.View);
     }
     sv.Visit((DirectionalLight)this);
 }
コード例 #3
0
 /// <summary>
 /// Accept is called by the current visitor. This function is currently used for traversal and search algorithms by the SceneManager object. 
 /// </summary>
 /// <param name="sv">The visitor that is currently traversing the scene.</param>
 public override void Accept(SceneVisitor sv)
 {
     sv.Visit((ActionCode)this);
 }
コード例 #4
0
 /// <summary>
 /// Passes the Component to the SceneVisitor which decides what to do with that Component.
 /// </summary>
 /// <param name="sv">The SceneVisitor that traverses through the information of the renderer during runtime.</param>
 public override void Accept(SceneVisitor sv)
 {
     sv.Visit((Renderer)this);
 }
コード例 #5
0
 /// <summary>
 /// Passes the Component to the SceneVisitor which decides what to do with that Component.
 /// </summary>
 /// <param name="sv">The sv.</param>
 public virtual void Accept(SceneVisitor sv)
 {
     //sv.Visit(this);
 }
コード例 #6
0
 /// <summary>
 /// Passes the Component to the SceneVisitor which decides what to do with that Component.
 /// </summary>
 /// <param name="sv">The SceneVisitor.</param>
 public override void Accept(SceneVisitor sv)
 {
     if (SceneEntity != null)
     {
         _position = SceneEntity.transform.GlobalPosition * SceneManager.RC.View;
         _direction = SceneEntity.transform.Forward * new float3x3(SceneManager.RC.View);
     }
     sv.Visit((SpotLight)this);
 }
コード例 #7
0
 /// <summary>
 /// Passes this Component to the <see cref="SceneVisitor"/> which decides what to do with that Component.
 /// </summary>
 /// <param name="sv">The SceneVisitor.</param>
 public override void Accept(SceneVisitor sv)
 {
     sv.Visit(this);
 }
コード例 #8
0
 /// <summary>
 /// Accept is called by the current visitor. This function is currently used for traversal and search algorithms by the SceneManager object. 
 /// </summary>
 /// <param name="sv">The visitor that is currently traversing the scene.</param>
 public override void Accept(SceneVisitor sv)
 {
     sv.Visit((Camera)this);
     //DrawCameraView();
 }