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

Problem with Renderpipieline

Discussion in 'Universal Render Pipeline' started by ZeraTFK, Jan 24, 2022.

  1. ZeraTFK

    ZeraTFK

    Joined:
    Sep 13, 2014
    Posts:
    15
    Hello,

    I have a "TopDown" project where i added some stylized grass.
    I add Exponential Squared Fox (i tryed Linear too).
    The tree leaves are also animated with the gras shader.


    In the Unity Editor it looks good:
    upload_2022-1-24_10-25-19.png

    If i compile the game and start the build it looks like this:

    upload_2022-1-24_10-20-6.png
    Booth, the new grass and the trees are not in the Fog.

    I Use URP Render Pipeline
    My fog settings:
    upload_2022-1-24_10-27-19.png

    Graphics settings:
    I use the Free Vikings Village Asset
    upload_2022-1-24_10-29-45.png

    I added it also to the Render Pipieline Asset in Quality:

    The new "GrassBendShader" for grass and tree leaves are added to the Renderer List
    upload_2022-1-24_10-32-57.png


    What can i do, to get the same result in my build?

    Thanks at all :D
     
  2. StaggartCreations

    StaggartCreations

    Joined:
    Feb 18, 2015
    Posts:
    2,136
    In your graphics settings, under Shader Stripping, the exponential fog mode is unchecked, whilst you intend to use it in your scene.

    So this functionality ends up being stripped from all shaders when you build the project.

    Once you tick the checkbox, it should all work as expected ;)
     
  3. ZeraTFK

    ZeraTFK

    Joined:
    Sep 13, 2014
    Posts:
    15
    Hi,

    Ok that was my mistake. I actually work with exponential fog, but set it to linear for testing. For the screenshot I switched it back to exponential.
    But the images were complete with linear fog. and it didn't work. if I set to exponential fog and check the box under graphics. it looks just that wrong

    Any other idea?
     
    Last edited: Jan 24, 2022