Changeset View
Changeset View
Standalone View
Standalone View
source/blender/draw/intern/shaders/common_hair_lib.glsl
| /** | /** | ||||
| * Library to create hairs dynamically from control points. | * Library to create hairs dynamically from control points. | ||||
| * This is less bandwidth intensive than fetching the vertex attributes | * This is less bandwidth intensive than fetching the vertex attributes | ||||
| * but does more ALU work per vertex. This also reduces the amount | * but does more ALU work per vertex. This also reduces the amount | ||||
| * of data the CPU has to precompute and transfer for each update. | * of data the CPU has to precompute and transfer for each update. | ||||
| */ | */ | ||||
| /* TODO(fclem): Keep documentation but remove the uniform declaration. */ | |||||
| #ifndef USE_GPU_SHADER_CREATE_INFO | #ifndef USE_GPU_SHADER_CREATE_INFO | ||||
| /** | /** | ||||
| * hairStrandsRes: Number of points per hair strand. | * hairStrandsRes: Number of points per hair strand. | ||||
| * 2 - no subdivision | * 2 - no subdivision | ||||
| * 3+ - 1 or more interpolated points per hair. | * 3+ - 1 or more interpolated points per hair. | ||||
| */ | */ | ||||
| uniform int hairStrandsRes = 8; | uniform int hairStrandsRes = 8; | ||||
| /** | /** | ||||
| ▲ Show 20 Lines • Show All 292 Lines • Show Last 20 Lines | |||||