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 Game Dev Digest Issue #108 - CG NEWS
Recent posts
- Testing Unity AI Beta
- Ways to Support UnityCoder Development
- Using UI Slider to Create 5-Star Rating Element
- Game Music Library For Unity (editor plugin)
- Fontastic : Easily Test Fonts in Unity Editor!
- GeoTiff Importer & Terrain Generator for Unity
- Create Baked DropShadow for UI images
- .JP2 Ortho Image Converter to PNG/JPG/TIFF
- Convert LAS/LAZ/PLY pointclouds to GLTF (GLB) Point Meshes (standalone converter)
- Detect SRP (URP or HDRP) with Assembly Definition Version Defines
- [LudumDare57] Theme: Depths
- MotionVector Effect: Object “disappears” when paused
Recent Comments
- on [Asset Store] PolygonCollider2D Optimizer
- on Trajectory Test Scene 2.0
- on Vector3 maths for dummies!
- on UnityHub 3.6.0: Remove Version Control & Cloud Dashboard columns
- on Using RenderDoc with Unity (graphics debugger)
- on UI Scroll View automatic Content height
- on [Asset Store] Point Cloud Viewer & Tools
- on [Asset Store] Point Cloud Viewer & Tools
Coin:
CUgDSbRqFcAumDSAcdKDvuXsw26VdkJe8C8WGUQHBAGS
An article by












[…] 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