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

Question I'm using XY ground plane with -Z up. How to setup sky based environment lighting for this plane?

Discussion in 'High Definition Render Pipeline' started by Zolden, Nov 10, 2022.

  1. Zolden

    Zolden

    Joined:
    May 9, 2014
    Posts:
    141
    It looks like physicslly based sky is hard coded for XZ plane with Y up. So, I suspect with my game's XY, -Z up orientation light from the sky will be incorrect.

    What can I do fix this issue? Can I maybe rotate the sky so horizon circle would be parallel to XY plane? Or maybe another solution?

    I just want to have a nice environment lighting. The sky isn't even visible in my game, a topdown view camera is used, like in starcraft2. But I want blue sky environment light to come from -Z hemisphere, and ground reflection to come from Z hemisphere.

    Maybe I could use a correctly oriented custom skybox instead of sky?
     
  2. Zolden

    Zolden

    Joined:
    May 9, 2014
    Posts:
    141
    Ok, looks like this was a noob question, as I found the obvious and trivial solution.

    Simply changing Planet Center Position parameter from -y to z has done exactly what I needed.