Changeset View
Changeset View
Standalone View
Standalone View
source/blender/draw/engines/eevee/shaders/shadow_vert.glsl
| Show First 20 Lines • Show All 64 Lines • ▼ Show 20 Lines | |||||
| /* Per attribute scope follows loading order. */ | /* Per attribute scope follows loading order. */ | ||||
| int g_curves_attr_id = 0; | int g_curves_attr_id = 0; | ||||
| /* Return the index to use for looking up the attribute value in the sampler | /* Return the index to use for looking up the attribute value in the sampler | ||||
| * based on the attribute scope (point or spline). */ | * based on the attribute scope (point or spline). */ | ||||
| int curves_attribute_element_id() | int curves_attribute_element_id() | ||||
| { | { | ||||
| int id = hairStrandID; | int id = hairStrandID; | ||||
| if (drw_curves.is_point_attribute[g_curves_attr_id][0] != 0) { | if (drw_curves.is_point_attribute[g_curves_attr_id][0] != 0u) { | ||||
| id = hair_get_base_id(); | id = hair_get_base_id(); | ||||
| } | } | ||||
| g_curves_attr_id += 1; | g_curves_attr_id += 1; | ||||
| return id; | return id; | ||||
| } | } | ||||
| vec4 attr_load_tangent(samplerBuffer cd_buf) | vec4 attr_load_tangent(samplerBuffer cd_buf) | ||||
| ▲ Show 20 Lines • Show All 74 Lines • Show Last 20 Lines | |||||