This is my second dabble in HLSL and this time it was just for personal reasons. I wanted to create a shadow effect for a 2D game that we are developing for our group project. Its actually very hard to find any resources on the internet about this but i did stumble accross one resource (which i have now lost the link to) where someone has created a basic shadow effect purely in shaders.
So i decided to have a go and this was the outcome. In the end however its too slow to be used in the game but serves as a usfull learning tool when the hardware catches up.
To view this you will need to download RenderMonkey.
Download: ShadowShader.zip
Wow I really wanted to use a 2D Shadow effect in my game. How slow is it?
ReplyDelete[...] One of Catalin’s reccent project particularly caught my eye however as I had tried to tackle the same problem several years ago when I was in my final year of university. That is, Dynamic 2D Shadows Calculated on the GPU (http://mikecann.co.uk/university-projects/shadowshader-in-rendermonkey/) [...]
ReplyDeleteOnly 3 years late on this reply, but its very slow. You should check out the recent work by Catalin on the subject: http://mikecann.co.uk/programming/shader-based-2d...
ReplyDelete