24
2012
The Return Of The Fake Vertex Shadow
Yay..more realtime fake shadows, using similar technique like this old fake vertex shadows test
Features:
– VertexLit shader with texture
– Linecast each vertex towards light, if we can reach light, then lets shine, otherwise stay dark..
– In the webplayer, 15 vertices are scanned per update loop, per wall object.. (it works with just 1 scan per loop also, just slower to update if objects are moving..)
– small exp2 fog added, to give some depth to the room..
Ideas:
– bounced lights? multiple lights? colored lights/shadows?
– smoother shadows, take average color from neighbour vertices?
– instead of scanning from each vertex, scan from middle of each triangle?
– optimize, if nothing has moved, dont scan..?
– semi-transparent/colored windows?
– use highres box/walls?
Webplayer:
http://unitycoder.com/upload/demos/mFakeVertexShadows2/
Download Source:
FakeVertexShadows10.unityPackage
Related Posts
4 Comments + Add Comment
Leave a comment to mgear
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













Found your blog recently and love reading your posts 🙂
Keep them coming
very nice plz sir upload it source code
source added! (its not cleaned up..but there are just few lines to do the simple scanning part..)
Global illumination – Low frequency ambient occlusion:
http://mtnphil.wordpress.com/2014/04/11/low-frequency-ambient-occlusion/