Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Default Skybox affecting sprite shading

Discussion in 'General Graphics' started by craigjwhitmore, Jan 20, 2019.

  1. craigjwhitmore

    craigjwhitmore

    Joined:
    Apr 15, 2018
    Posts:
    135
    I've literally created a new 3D project and dumped a sprite down. For some reason, the default brown skybox is affecting the shading of the sprite I place down, giving neutral shading a brown colour, when it's moved above the horizon the shading changes.

    I don't know how to change this, so that the sprite isn't affected by the skybox colour. Even when I add a lightsource to the scene, the sprite takes on the dull brown colour.

    Changing the main camera clear flags and background to Solid colour and black respectively does nothing, as shown below.

    What can I do about this, so that the sprites aren't affected?

    Below, you can see the difference above and below the horizon.
    upload_2019-1-20_17-37-15.png upload_2019-1-20_17-38-18.png
     
  2. craigjwhitmore

    craigjwhitmore

    Joined:
    Apr 15, 2018
    Posts:
    135
    When I add my own background, the brown still shows up in the sprites alpha channel. How do I set my own background that overrides the default skybox without having this garish brown show up in my sprite?

    I would be totally happy just setting the background to a solid white rather than brown.
     
    Last edited: Jan 21, 2019
  3. craigjwhitmore

    craigjwhitmore

    Joined:
    Apr 15, 2018
    Posts:
    135
    Window->Rendering->Lighting Settings

    Under Debug Settings, select Generate Lighting.
    De-select Auto Generate.
    From the Baked Lightmaps set Lighting Data Asset to None.
    Remove generated Lighting from the project.

    I'm not sure why this works, but it does.