Search Unity

Per shot lighting in cinemachine

Discussion in 'Cinemachine' started by Solovykh, Sep 29, 2017.

  1. Solovykh

    Solovykh

    Joined:
    Aug 28, 2017
    Posts:
    59
    Does cinemachine have any utilities for creating camera specific lighting? Meaning, if I want camera A to shoot the scene with lights 1,2,3,4 enabled, and have camera B shoot with lights 5,6 enabled.
     
  2. Gregoryl

    Gregoryl

    Unity Technologies

    Joined:
    Dec 22, 2016
    Posts:
    7,730
    There is nothing in Cinemachine for this out-of-the-box, but you could easily write a little script to control your lights depending on which virtual camera is active. You can hook into the CinemachineBrain's CameraActivated event, or you could just poll the brain for the active virtual camera