Unity custom hair simulation PT1

Jul 31, 2018 - 13 minutes
Introduction In today’s blog post I would like to talk about hair simulation, it has been something that always piqued my interest. I attempted to do a proper simulation in the past based on the Position based dynamics , more specifically the one focusing on inextensible hair strand . The issue with both papers was that they did not worry about keeping the initial hair shape, basically the groom an artist would have spent days crafting. Read more ...

HLSL: Will it MAD/FMA ?

Jul 1, 2018 - 4 minutes
SPOILER: What is a MAD/FMA? (click to show text) TL;DR: FMA (Fused multiply add) and MAD/MADD (multiply-add) are a specific instuction in a processor which allows to performa a multiplication followed by an add in a single instruction. Having that instruction baked in hardware allows to achieve two results, higher performance due to performaing the operation in a single instruction and less instruction/fetch and decoding down the cpu pipeline. Proper explanation: FMA on wikipedia Read more ...