| Submitted by , posted on 04 June 2003 |

Image Description, by Some shadowmapping stuff I did to get into DX9/Cg/Shaders. It extends standard shadowmapping by modifying the depth values of pixels in a pixel shader. This enables one to create rather complex looking objects casting complex shadows, which are based on very simple geometry. The image and demo show a simple, textured sphere. The shadow is casted on the floor geometry as well as the inner parts of the sphere-fragments. Tested it only on my NV30, so I cannot guarantee it is running on other hardware.
You can get the demo here:
http://cocoonpage.com/sm/
The demo includes the cg-shader sources.
Thank you,
Alex

[prev] | Image of the Day Gallery www.flipcode.com | [next]

Copyright 1999-2008 (C) FLIPCODE.COM and/or the original content author(s). All rights reserved.
Please read our Terms, Conditions, and Privacy information.