How to change sunsky attributes

Discussion in 'Utilities and programming' started by osss, Dec 11, 2022.

  1. osss

    osss
    Expand Collapse

    Joined:
    Dec 10, 2022
    Messages:
    2
    Hello. I've been trying to change the values of the sunsky object, I I have been able to, but not fully:

    I stored the sun line this:
    sun = scenetree.sunsky

    then I can change the brightness like this:

    sun.brightness = 10

    and it works, it change the value. But the changes are not visible unless I hide and show the sunsky object in the editor. Looks like it needs to be updated.

    so my first question is, is there a command to force update the sky/scene?

    And more important, how do I change the sunsky nightColor attribute?. I can see is a ColorF variable type, but I can't find a documentation or a lua command that will do something like this.

    Thanks
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice