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. Dismiss Notice

Question Is there any way to make a shader graph not receive any shadows? [URP]

Discussion in 'Shader Graph' started by AtomicLugia, Jul 16, 2022.

  1. AtomicLugia

    AtomicLugia

    Joined:
    Aug 15, 2020
    Posts:
    54
    This is something pretty annoying. I'm working on a "Wii-ish" water surface, which is opaque. I already set up the main texture, bump maps and settings of the shader graph. I don't want that the water surface shader receives any shadows. I know there's a keyword "_RECEIVE_SHADOWS_OFF", but that did nothing. I tried everything I could, so help would be pretty nice here!

    Unity 2020.3.23f1
    URP 10.7.0
     
  2. AtomicLugia

    AtomicLugia

    Joined:
    Aug 15, 2020
    Posts:
    54
    Is there a way to get rid of the shadow? Here's what i looks right now:


    Graph settings:
    upload_2022-7-18_10-7-1.png
     
  3. AtomicLugia

    AtomicLugia

    Joined:
    Aug 15, 2020
    Posts:
    54
    Is there really no way to get rid of the shadows on that surface? Should I post the shader graph here to check out and maybe show suggestions to get rid of the shadow?
     
  4. Qriva

    Qriva

    Joined:
    Jun 30, 2019
    Posts:
    1,108
  5. AtomicLugia

    AtomicLugia

    Joined:
    Aug 15, 2020
    Posts:
    54
    Oh, thanks! That fixed the issue. I forgot to add "_RECEIVE_SHADOWS_OFF" in the "Shader Keywords" field of the Material Inspector in debug mode. You're a lifesaver!