Cleanup: make format
This commit is contained in:
parent
cd412b4454
commit
25d216724b
|
@ -818,11 +818,13 @@ ccl_device float4 kernel_tex_image_interp_3d(KernelGlobals kg,
|
|||
case IMAGE_DATA_TYPE_NANOVDB_FLOAT3:
|
||||
return NanoVDBInterpolator<nanovdb::Vec3f>::interp_3d(info, P.x, P.y, P.z, interp);
|
||||
case IMAGE_DATA_TYPE_NANOVDB_FPN: {
|
||||
const float f = NanoVDBInterpolator<nanovdb::FpN, float>::interp_3d(info, P.x, P.y, P.z, interp);
|
||||
const float f = NanoVDBInterpolator<nanovdb::FpN, float>::interp_3d(
|
||||
info, P.x, P.y, P.z, interp);
|
||||
return make_float4(f, f, f, 1.0f);
|
||||
}
|
||||
case IMAGE_DATA_TYPE_NANOVDB_FP16: {
|
||||
const float f = NanoVDBInterpolator<nanovdb::Fp16, float>::interp_3d(info, P.x, P.y, P.z, interp);
|
||||
const float f = NanoVDBInterpolator<nanovdb::Fp16, float>::interp_3d(
|
||||
info, P.x, P.y, P.z, interp);
|
||||
return make_float4(f, f, f, 1.0f);
|
||||
}
|
||||
#endif
|
||||
|
|
|
@ -72,13 +72,13 @@ int g_curves_attr_id = 0;
|
|||
* based on the attribute scope (point or spline). */
|
||||
int curves_attribute_element_id()
|
||||
{
|
||||
int id = hairStrandID;
|
||||
if (drw_curves.is_point_attribute[g_curves_attr_id] != 0) {
|
||||
id = hair_get_base_id();
|
||||
}
|
||||
int id = hairStrandID;
|
||||
if (drw_curves.is_point_attribute[g_curves_attr_id] != 0) {
|
||||
id = hair_get_base_id();
|
||||
}
|
||||
|
||||
g_curves_attr_id += 1;
|
||||
return id;
|
||||
g_curves_attr_id += 1;
|
||||
return id;
|
||||
}
|
||||
|
||||
vec4 attr_load_tangent(samplerBuffer cd_buf)
|
||||
|
|
|
@ -79,13 +79,13 @@ int g_curves_attr_id = 0;
|
|||
* based on the attribute scope (point or spline). */
|
||||
int curves_attribute_element_id()
|
||||
{
|
||||
int id = hairStrandID;
|
||||
if (drw_curves.is_point_attribute[g_curves_attr_id] != 0) {
|
||||
id = hair_get_base_id();
|
||||
}
|
||||
int id = hairStrandID;
|
||||
if (drw_curves.is_point_attribute[g_curves_attr_id] != 0) {
|
||||
id = hair_get_base_id();
|
||||
}
|
||||
|
||||
g_curves_attr_id += 1;
|
||||
return id;
|
||||
g_curves_attr_id += 1;
|
||||
return id;
|
||||
}
|
||||
|
||||
vec4 attr_load_tangent(samplerBuffer cd_buf)
|
||||
|
|
|
@ -130,13 +130,13 @@ int g_curves_attr_id = 0;
|
|||
* based on the attribute scope (point or spline). */
|
||||
int curves_attribute_element_id()
|
||||
{
|
||||
int id = interp.curves_strand_id;
|
||||
if (drw_curves.is_point_attribute[g_curves_attr_id] != 0) {
|
||||
id = hair_get_base_id();
|
||||
}
|
||||
int id = interp.curves_strand_id;
|
||||
if (drw_curves.is_point_attribute[g_curves_attr_id] != 0) {
|
||||
id = hair_get_base_id();
|
||||
}
|
||||
|
||||
g_curves_attr_id += 1;
|
||||
return id;
|
||||
g_curves_attr_id += 1;
|
||||
return id;
|
||||
}
|
||||
|
||||
vec4 attr_load_tangent(samplerBuffer cd_buf)
|
||||
|
|
Loading…
Reference in New Issue