Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Question Fake Lighting - Culling Issues

Discussion in 'Universal Render Pipeline' started by SameDev, Dec 3, 2023.

  1. SameDev

    SameDev

    Joined:
    Apr 14, 2013
    Posts:
    18
    Hello,

    I am trying to make fake lights in URP. The approach is in the images, it is done by highlighting the intersected mesh with a shader. The only issue I have is that the effect does not render when the camera is inside the geometry of the "light caster".

    Im doing this to light a series of unlit shaders. Its crucial to my approach, I know it may seem counter intuitive to do things this way as you dont get shadows etc but thats ok. Is there any way to have the shader appear whilst the camera is inside the mesh? For context, its just a simple sphere
     

    Attached Files: