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

WebGL URP Lit Custom Shader w/ Stencil

Discussion in 'Web' started by tiggaxxx, Dec 9, 2021.

  1. tiggaxxx

    tiggaxxx

    Joined:
    Jan 13, 2020
    Posts:
    30
    Hi,

    I have wrote a shader to make skin invisible when it comes over the cloth (to avoid minor clipping problems), which i made work like a mask. All i did was copy the Lit shader from URP and added the Stencil Buffer.

    It works like a charm on the editor, but on the build it doesn't do anything, just renders the material like a normal lit material.

    I tested the same method but with an unlit shader and it worked on both the editor and the build.

    Anyone knows how to solve this?