- Home /
 
               Question by 
               Zhialus · Jun 15, 2020 at 05:50 AM · 
                renderingshaderscullingline of sight  
              
 
              Line of sight shading / culling?
Is there a way to get an effect like this in unity? I want to have line of sight lighting where anything not visible from a point is VERY dark.  I'm not experienced in shaders or shader graph but I tried using a cel shader to get something similar but black and white is the best I could do, and even then it was buggy. I also tried Occlusion culling but that ends up showing entire objects instead of this nice sharp slice look I've got with this version.
 I'm not experienced in shaders or shader graph but I tried using a cel shader to get something similar but black and white is the best I could do, and even then it was buggy. I also tried Occlusion culling but that ends up showing entire objects instead of this nice sharp slice look I've got with this version.  I made the first image by chopping the model in blender and stacking in on itself with the under version having a darker albedo, is there some way I could do something similar with a dissolve shader or something??
 I made the first image by chopping the model in blender and stacking in on itself with the under version having a darker albedo, is there some way I could do something similar with a dissolve shader or something?? 
 
                 
                line-of-sight-cull.png 
                (360.7 kB) 
               
 
                
                 
                culled.png 
                (420.2 kB) 
               
 
              
               Comment
              
 
               
              Your answer
 
 
              koobas.hobune.stream
koobas.hobune.stream 
                       
                
                       
			     
			 
                