Category: Sin categoría

  • Indirect Lighting on Particles in Real Time

    Indirect Lighting on Particles in Real Time

    Shading particles can be frustrating sometimes, there’s a lot of geometry and the particles tend to look flat when working with direct lighting effects and shadows since they don’t account for the volumetric effects of the particles. The previous issue have been solved using different techniques that are used to shade particles such as volume…

  • Voxelization & Distance Fields from Meshes in WebGL

    Voxelization & Distance Fields from Meshes in WebGL

    The demo can be seen at: https://hectorarellanodev.github.io/WebGLVoxelizer/ Calculating the distance field of a mesh in real time can be done using the jump flood algorithm (more information in this post: https://blog.demofox.org/2016/02/29/fast-voronoi-diagrams-and-distance-dield-textures-on-the-gpu-with-the-jump-flooding-algorithm/), the idea is to calculate the initial seeds for the jump flood passes voxelizing the geometry, then the jump flood is used to obtain…