I have seen a lot of assets for volumetric lightening,volumetric clouds but i want to create my own,but i do not know how volumetric rendering take place(specially volumetric lights).If you have any info,resources on how it works please provide it to me,Thanks in advance ![]()
1 Answer
1Volumetric lighting is an incredibly complex topic. First you have to get your head around pure raymarching and camera effects, but also drawing and sampling from shadow-maps manually, as well as building a framework for managing every shadow-map in the scene individually so that the effect would work for more than one light. I learned the basics for volumetric lighting from this fantastic blog post;
Which features source code snippets (as well as a downloadable finished project). It is a fantastic place to start. As for more complex implementations that involve multiple light sources, you can look at various GDC presentations on the topic for the pure maths and implementation details. Or, you can simply look at the open source Aura project;