Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

ARKit adapting to light?

Discussion in 'AR' started by reinabada, Nov 22, 2017.

  1. reinabada

    reinabada

    Joined:
    Apr 13, 2017
    Posts:
    7
    Hi!
    I am currently learning to do a few things ARKit in Unity. Does anybody knows if it is possible to adapt the light of my object to the environment light?
    Thanks you!
    Maria
     
  2. JelmerV

    JelmerV

    Joined:
    Nov 29, 2012
    Posts:
    248
    Yes, just drop the ambientlight script on your directional light. It changes the intensity for you.
    Changing colour temperature may also be possible i think.
    You can't get the direction of the lighting though..
    You could use a daylight system if you have an outdoor scene to match the sun's position. I have done that in my Tesla demo.
     
    reinabada likes this.
  3. reinabada

    reinabada

    Joined:
    Apr 13, 2017
    Posts:
    7
    Wow you demo looks amazing!
    Thank you for the help.
    Maria