Skip to content

URP Materials not receiving shadows from point lights #394

@EvaUnit10032

Description

@EvaUnit10032

Describe the bug
In the built-in render pipeline, shadows can be cast onto objects with the toon shader from point lights. However in URP (and HDRP) this is broken.

To Reproduce
Open a project in URP, turn off shadows for the directional light, turn on shadows for a point light, put the Toon Shader material onto a floor or prop (like a table), tick the receive shadows box to be on in the inspector, put another object between the light and the object with the Toon shader.

Expected behavior
The object between them should block the point light and cast a shadow onto the object with the toon shader.

Screenshots
The first image is of the shadow not being received by the object in URP while it successfully is cast onto the floor which is the standard URP lit texture. The second image is of the shadow being successfully received in the built-in render pipeline. The floor is missing because it was a URP material.
Image

Image

Desktop:

  • OS: Windows 11
  • Browser: Standalone
  • Unity Version 2022.3.57f1, Toon Shader version 0.11.0

Additional context
As I mentioned earlier this is also an issue in HDRP but I haven't tried raycast shadows yet so I don't know if those are broken from point lights as well.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions