Underwater caustics

Posted By: 3run

Underwater caustics - 12/20/17 16:37

Hey!

I riped caustics from mystymood demo terrain shader, trying to implement it into the shader pipeline I'm currently using. I got it working for models (almost the same way as it works in mystymood), but trying to understand how to get it working for level blocks. Problem is, that it uses my->skill41-44, so I can't set them for level blocks.. Maybe using something like mtl.skill1-skill4 ?

As I'm not good in shaders, I got pretty messed up with those vecSkill5 etc... vecSkill.x, y, xy, w, z and other shit.

Thank you in advance.

Posted By: 3run

Re: Underwater caustics - 12/20/17 20:46

Got it working via vecSkill5 grin I'm not sure if I've done it correctly, but here is the result!
Posted By: 3run

Re: Underwater caustics - 12/20/17 21:12

Nahh.. it makes it darker... :<
© 2024 lite-C Forums