精選文章

SmallBurger Asset Home

  SmallBurger

2023年12月26日 星期二

2023年12月16日 星期六

InifityQuadOcean(My first unity asset package)

InifityQuadOcean is my first Unity plugin. Due to my continuous dedication to graphic rendering techniques for mobile games, I have observed that the number of vertices significantly affects the performance of mobile devices. Therefore, the primary goal here is to address the challenges of rendering an infinite ocean using a single Quad. This involves meeting basic requirements such as Bidirectional Reflectance Distribution Function (BRDF) lighting, undulating surfaces on the water near the shore, and handling waves and foam.

The relevant plugin links are as follows:InifityQuadOcean

2023年8月4日 星期五

The follow camera GPU instance particles

使用nine grid實作follow camera particles effect是一個好想法,它可以避免particles跟隨camera飄浮及需預熱(否則會來不及產生)的問題,而且particles也沒做perInstance culling,這對性能影響蠻大的…
這裡使用了GPU instance及GPU culling來實作這個系統,並在ComputeShader中模擬粒子的位移,整個處理流程如下: