snapchip / unity-outline Goto Github PK
View Code? Open in Web Editor NEWUnity object outlines for Built-in render pipeline and URP
Unity object outlines for Built-in render pipeline and URP
The 'draw on top' option works fine EXCEPT when Unity does a 'CopyDepth' pass.
For example with these setting (depth texture enabled and MSAA off)
Then the 'draw on top' option does not work, the outlines will always be on top. This only happens in the game view.
When MSAA is enabled, the issue is not there or when the depth texture is disabled and post processing is also disabled on the camera, it's also fine.
I did some research and found that whether or not the 'draw on top' option works, is related to whether or not Unity does a 'CopyDepth' pass. The pass is here.
And here in this script
you see they do some logic like this
bool requiresDepthPrepass = requiresDepthTexture && !CanCopyDepth(ref renderingData.cameraData); requiresDepthPrepass |= isSceneViewCamera; requiresDepthPrepass |= isPreviewCamera; requiresDepthPrepass |= renderPassInputs.requiresDepthPrepass; requiresDepthPrepass |= renderPassInputs.requiresNormalsTexture;
which corressponds to the issue not being active when the scene view is active or when unity can't copy depth. So when unity does a deph prepass instead of the copy depth pass, all works fine..
Hi,
I like to thank you for this amazing shader!
I like to ask you if it is possible to add more than one render feature?
I've added 2 Outline Features with differend layers. But only the first in the list is drawn.
Any ideas?
Thanks in advance
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.