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
Related Posts
Leave a comment
Recent posts
- Use TikTok-TTS in Unity (with WebRequest)
- Create Scene Thumbnail Image using OnSceneSaved & OnPreviewGUI
- webgl+javascript TTS
- Using Moonsharp (LUA) + Unity Webgl
- Using 3D gameobject prefabs with Unity Tilemap + NavMesh Surface
- Custom Unity Hub Project Template Preview Image/Video (using HTML+CSS in package description)
- Check if point is inside polygon 2D (using line intersection)
- UnityHub: Enable Create Project Button (without having to select Cloud Organization)
- UI: Make Tooltip background fit Text content length
- Pong-Wars in Unity
- Install Android SDK+JDK+NDK for Unity (without AndroidStudio or Unity Hub)
- UnityHub: Add support for custom project title (instead of folder name) or use ProductName