Browsing articles tagged with " depth"
Feb
22
2023

Fake 3D Parallax Effect using Shader & (Pre-generated) Depth Map

Cool effect: http://depthy.stamina.pl/#/sample/mango Converted this few lines into unity shader:https://gist.github.com/bozzin/5895d97130e148e66b88ff4c92535b59 Finished shader (unlit, build in pipeline) + mouse position script:https://gist.github.com/unitycoder/696a07c9de34e6a8fd28dc7de2362501

Jun
26
2016

Unlit Fake Curved World Shader

Tried to get world position from depth texture, but it didn’t work.. then founded COMPUTE_DEPTH_01 instead, makes nice curve effect when applied to meshes (pushing the y vertices down based on depth).. although breaks a bit depending on camera rotation/position.. Shader source: https://github.com/UnityCommunity/UnityLibrary/blob/master/Shaders/Vertex/UnlitFakeCurved.shader without curve-shader: […]

Dec
6
2015

Custom shader Transparency & Batching issues

While updating this billboard shader https://github.com/unitycoder/DoomStyleBillboardTest , had couple strange shader issues: Problem#1: Overlapping transparent area clips other object behind it (see issue#6) This one was solved by adding “ZWrite Off” to the shader, apparently something to do how transparent objects get depth sorted..(?) http://docs.unity3d.com/Manual/SL-CullAndDepth.html […]

Mar
6
2012

Camera Shaders

yay..took few hours just to get this working: Render a whole camera view with one shader. It should be simple, but the documents wont give any examples: Camera.RenderWithShader Main image is showing vertex-depth-shader seen with camera (its modified version from one of these unity replacement […]

Connect

Twitter View LinkedIn profile Youtube Youtube Join Discord Twitch Instagram

UnityLauncherPro

Get UnityLauncherPRO and work faster with Unity Projects!
*free unity hub alternative

@unitycoder_com

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.