EDIT 2:

Well here it is, excuse my understanding of post processing and HLSL, it's my first time smile

So if there are bugs, it's probably over the top of my head on how to fix them.

Anyhow I hope it's usefull smile

Download shader: http://files.filefront.com/LightShaftrar/;13920138;/fileinfo.html





EDIT:

The lightshaft shader is done, though it very messy atm, I need to clean it up abit and find a better solution for making the VIEW that is being rendered black contain the same position and angles as the real scene, cause right now I do a while loop with ViewBlack.x = camera.x etc which is not nice, but hey, i'm a novice in HLSL and this was the solution I found for myself smile

I'll release it soon, just need to extract it out of my project and make it standalone with a small level, and probably some solution for that camera position / angle problem first!

Link: http://www.youtube.com/watch?v=-vZjq-K3nS0

NEW HD: http://www.youtube.com/watch?v=LBdlulbYNgI








Original post

Hello people, I'm using Nils "Slin" Daumanns radialblur shader and his God Ray IDEA to make Fake Light Shafts. I just extended it alittle bit with lite-c for making it stick to the sun_pos and fade out/in on screen corners.

http://www.youtube.com/watch?v=bWkfFrvWCJg

My problem is rendering the entire scene black except the SKY.
If I can get that to work, from there on I can handle the rest, but I have no clue on how to render everything except the SKY black into a texture. So being stuck at Step 1 kinda sucks =/

If I could get some help on that, I could handle the rest, as what's left to do from there on would be passing it as mtlSkin1 to the GodRay PP shader and then radialblur it and additive/screen blend it with the rest of the scene.

I also plan on releasing it as a small contribution from my side smile

Last edited by Enduriel; 06/22/09 01:56.