Unity-Technologies / com.unity.demoteam.hair

An integrated solution for authoring / importing / simulating / rendering strand-based hair in Unity.
Other
730 stars 99 forks source link

Feature request / clarification: Translation of density probe texture #95

Open qlee01 opened 4 months ago

qlee01 commented 4 months ago

Hi,

I figure out that, using the density probe, I can create some very cheap and still good looking shadows (by sampling inside shader). However, it seems the three Texture3D (Density / Motion / Scattering) seem to be AABB aligned and don't translate with the hair instance, at least not on rotation. Would this be something to consider? Not sure if it makes sense, but right now I get some artifacts which seems to be the grid of the Density Texture3D if the hair rotates, I guess also the other stuff like scattering could benefit from the textures being translated in sync with the hair instance.

Aydindeveloper commented 2 months ago

image

Yes, unreal engine does this. I tried it too. I don't have much experience with raymarch shaders, but the result is promising.