public override void renderUpdate(int front, CameraBase dummy, ref DrawBuffer draw_buffer)
 {
     if (active_)
     {
         draw_buffer.registCamera(ref transform_);
         var view_matrix       = transform_.getTRS();
         var projection_matrix = SystemManager.Instance.ProjectionMatrix;
         screen_matrix_ = projection_matrix * view_matrix.inverse;
     }
 }
Example #2
0
        public override void renderUpdate(int front, CameraBase dummy, ref DrawBuffer draw_buffer)
        {
            if (active_)
            {
                draw_buffer.registCamera(ref rigidbody_.transform_);

                var view_matrix = Matrix4x4.TRS(rigidbody_.transform_.position_,
                                                rigidbody_.transform_.rotation_,
                                                CV.Vector3One);
                var projection_matrix = SystemManager.Instance.ProjectionMatrix;
                screen_matrix_ = projection_matrix * view_matrix.inverse;
            }
        }
Example #3
0
 public void renderUpdate(int front, ref DrawBuffer draw_buffer)
 {
     draw_buffer.registCamera(ref rigidbody_.transform_);
 }