Ejemplo n.º 1
0
    public void blendCamera(Camera camera, float blendTime, Interpolators.interpolatorFunc interpolatorFunc)
    {
        MixedCamera mc = new MixedCamera();

        mc.blendTime        = blendTime;
        mc.cam              = camera;
        mc.elapsedTime      = 0.0f;
        mc.weight           = blendTime <= 0.0f ? 1.0f : 0.0f;
        mc.interpolatorFunc = interpolatorFunc;

        mixedCameras.Add(mc);
    }
Ejemplo n.º 2
0
    public void BlendCamera(Camera cam, float blendTime, Interpolators.InterpolaltorFunc interpolatorFunc)
    {
        MixedCamera mc = new MixedCamera();

        mc.BlendTime        = blendTime;
        mc.Cam              = cam;
        mc.ElapsedTime      = 0.0f;
        mc.Weight           = blendTime <= 0.0f ? 1.0f : 0.0f;
        mc.InterpolatorFunc = interpolatorFunc;

        MixedCameras.Add(mc);
    }