27
2021
Boat Attack URP Water: Add Underwater surface flip
Just modify 2 lines from the scripts and you get visible waterplane when going below surface. The idea is to check camera Y position, if below 0, flip normal and flip matrix for mesh.
Boat Attack Project:
https://github.com/Unity-Technologies/BoatAttack
Inside Water.cs & PlanarReflections.cs replace these 2 lines:
Related Posts
4 Comments + Add Comment
Leave a comment to mgear
Recent posts
- UnityHub: Enable built-in Login Dialog (no more browser login/logout issues!)
- 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)
[…] BoatAttackURPWater:AddUnderwatersurfaceflip – Just modify 2 lines from the scripts and you get visible waterplane when going below surface.unitycoder.com Open Source […]
[…] BoatAttackURPWater:AddUnderwatersurfaceflip – Just modify 2 traces from the scripts and also you get seen waterplane when going beneath floor.unitycoder.com Open Source […]
[…] Source link title_words_as_hashtags […]
mirror shader that works with VR in URP Unity
https://github.com/Avdbergnmf/UnityURPMirrorShader