Blender Git Loki
Git Commits -> Revision e34ba9f
Revision e34ba9f by Lukas Toenne (hair_guides, hair_guides_grooming, hair_object, strand_editmode, tmp_hair_curves) August 3, 2017, 07:11 (GMT) |
Use a 2D texture for the hair interpolation data instead of 1D for larger number of hairs. It turns out that 1D textures have the same size limit on their 1 axis as 2D textures. This limits the potential number of hair dramatically, even though the actual size of the texture is very small. Using a 2D texture and wrapping the index avoids this problem. |
Commit Details:
Full Hash: e34ba9fb7a91ef9be9109eaae5242cd4b3d7a22c
Parent Commit: c92457a
Lines Changed: +193, -119
1 Added Path:
/source/blender/draw/intern/draw_hair.c (+59, -0) (View)
9 Modified Paths:
/source/blender/blenkernel/BKE_editstrands.h (+5, -4) (Diff)
/source/blender/blenkernel/BKE_hair.h (+4, -2) (Diff)
/source/blender/blenkernel/intern/editstrands.c (+12, -6) (Diff)
/source/blender/blenkernel/intern/hair.c (+40, -40) (Diff)
/source/blender/draw/CMakeLists.txt (+1, -0) (Diff)
/source/blender/draw/engines/eevee/eevee_materials.c (+22, -42) (Diff)
/source/blender/draw/engines/eevee/shaders/hair_lib.glsl (+23, -17) (Diff)
/source/blender/draw/intern/draw_cache_impl_strands.c (+18, -7) (Diff)
/source/blender/draw/intern/draw_common.h (+9, -1) (Diff)
/source/blender/blenkernel/BKE_hair.h (+4, -2) (Diff)
/source/blender/blenkernel/intern/editstrands.c (+12, -6) (Diff)
/source/blender/blenkernel/intern/hair.c (+40, -40) (Diff)
/source/blender/draw/CMakeLists.txt (+1, -0) (Diff)
/source/blender/draw/engines/eevee/eevee_materials.c (+22, -42) (Diff)
/source/blender/draw/engines/eevee/shaders/hair_lib.glsl (+23, -17) (Diff)
/source/blender/draw/intern/draw_cache_impl_strands.c (+18, -7) (Diff)
/source/blender/draw/intern/draw_common.h (+9, -1) (Diff)