Differential D16819 Diff 58769 source/blender/draw/engines/eevee_next/shaders/eevee_attributes_lib.glsl
Changeset View
Changeset View
Standalone View
Standalone View
source/blender/draw/engines/eevee_next/shaders/eevee_attributes_lib.glsl
| Show First 20 Lines • Show All 127 Lines • ▼ Show 20 Lines | |||||
| 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 = interp.curves_strand_id; | int id = interp.curves_strand_id; | ||||
| if (drw_curves.is_point_attribute[g_curves_attr_id][0] != 0) { | if (drw_curves.is_point_attribute[g_curves_attr_id][0] != 0u) { | ||||
| # ifdef COMMON_HAIR_LIB | # ifdef COMMON_HAIR_LIB | ||||
| id = hair_get_base_id(); | id = hair_get_base_id(); | ||||
| # endif | # endif | ||||
| } | } | ||||
| g_curves_attr_id += 1; | g_curves_attr_id += 1; | ||||
| return id; | return id; | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 142 Lines • Show Last 20 Lines | |||||