Search Unity

Question Hole interior / portal

Discussion in 'Shader Graph' started by fendercodes, Sep 18, 2021.

  1. fendercodes

    fendercodes

    Joined:
    Feb 4, 2019
    Posts:
    192
    Any tips on how to make these holes look more realistic? We cannot make an actual mesh that cuts into the wall due to some other limitations, so looking for a shader trick. I'm hoping it'd just look a little less like a flat black texture (which it is!) but almost like the start of a dark tunnel.

    1D03318E-8D45-4380-8D19-387ED299CFA2.png

    I found this but wasnt sure if it's the right thing. Seems a bit too advanced for what we need.
    https://wiki.amplify.pt/index.php?title=Unity_Products:Fake_Interiors/Manual
     
  2. roykoma

    roykoma

    Joined:
    Dec 9, 2016
    Posts:
    176
    I personally would use Stencil Buffers. Not too sure how you'd best implement that using URP/HDR/ShaderGraph or how useful it would be for your specific project, but for Built In here's a short article about it: https://www.ronja-tutorials.com/post/022-stencil-buffers/
     
  3. fendercodes

    fendercodes

    Joined:
    Feb 4, 2019
    Posts:
    192
    I forgot to mention something important - we're on deferred renderer.