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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Correct use of shaders for gold in unity 5

Discussion in 'Shaders' started by geranimo, Dec 23, 2015.

  1. geranimo

    geranimo

    Joined:
    Dec 18, 2015
    Posts:
    6
    Hello, I'm trying to get a gold texture but I can't find the proper shader.

    This is what I get:
     

    Attached Files:

  2. bgolus

    bgolus

    Joined:
    Dec 7, 2012
    Posts:
    12,248
    You need a skybox of some kind, either the procedural one or a cubemap based one, otherwise the game has nothing to reflect.

    Go to Window > Lighting > Scene > Skybox and click on the circle on the right. Select Default-Skybox
     
    Dantus likes this.
  3. hippocoder

    hippocoder

    Digital Ape Moderator

    Joined:
    Apr 11, 2010
    Posts:
    29,723
    And naturally the object should be covered by reflection probe or mesh set to include skybox.
     
  4. geranimo

    geranimo

    Joined:
    Dec 18, 2015
    Posts:
    6
    I already have the default skybox set up, and selecting reflection probe for any of the options does not change the material to gold.
     
  5. Dantus

    Dantus

    Joined:
    Oct 21, 2009
    Posts:
    5,667
    Please, show a screenshot of your Lighting window (Window -> Lighting) with the Scene tab selected.
     
  6. geranimo

    geranimo

    Joined:
    Dec 18, 2015
    Posts:
    6
    Here it is.

    I also noticed a message error "GUI Window tries to begin rendering while something else has not finished rendering" if it has anything to do with the problem
     

    Attached Files:

  7. Dantus

    Dantus

    Joined:
    Oct 21, 2009
    Posts:
    5,667
    Try to click on build to generate all the lighting maps and wait until it is done.
     
    geranimo likes this.
  8. geranimo

    geranimo

    Joined:
    Dec 18, 2015
    Posts:
    6
    It worked, thanks :)