/// <summary> /// Populate the World, WorldInverse, and WorldViewProjection parameters. /// </summary> public void PopulateTransformLocal(Camera camera, ref Matrix world) { XiHelper.ArgumentNullCheck(camera); World = world; WorldInverse = world.Determinant() != 0 ? Matrix.Invert(world) : Matrix.Identity; WorldViewProjection = world * camera.ViewProjection; }