I've found this ISF shader, an underWater volumetric lights, it works ok on ifs.video, but when I try to use it in Millumin nothing happens. And there's no error message. I don't understand.
Thanks
This is an embed external element. It can be deleted using the delete key or the backspace key. To view the full element, press the preview button below.
Indeed, the variable "Caustic" is never initialized. So maybe it works with WebGL (in your browser I mean, because it is more permissive) but the behavior may be erratic in general, with OpenGL for example (in an application I mean).
In brief, rewrite the code as follow : float Caustic = 0.;
This is an embed external element. It can be deleted using the delete key or the backspace key. To view the full element, press the preview button below.
Comments
Hi, a second related question :
I've found this ISF shader, an underWater volumetric lights, it works ok on ifs.video, but when I try to use it in Millumin nothing happens. And there's no error message. I don't understand.
Thanks
Hello @hyll,
This is normal : there is a mistake in the code.
Indeed, the variable "Caustic" is never initialized. So maybe it works with WebGL (in your browser I mean, because it is more permissive) but the behavior may be erratic in general, with OpenGL for example (in an application I mean).
In brief, rewrite the code as follow :
float Caustic = 0.;
Best. Philippe
Thanks a lot Philippe !
And by the way, I found out where was the caustics shader I was thinking about : in Madmapper ;)