Cycles Hair: refactoring to support generic attributes for hair curves. There
should be no functional changes yet. UV, tangent and intercept are now stored as attributes, with the intention to add more like multiple uv's, vertex colors, generated coordinates and motion vectors later. Things got a bit messy due to having both triangle and curve data in the same mesh data structure, which also gives us two sets of attributes. This will get cleaned up when we split the mesh class.
This commit is contained in:
@@ -24,9 +24,9 @@ shader node_hair_info(
|
||||
output float Thickness = 0.0,
|
||||
output normal TangentNormal = N)
|
||||
{
|
||||
getattribute("curve:is_strand", IsStrand);
|
||||
getattribute("curve:intercept", Intercept);
|
||||
getattribute("curve:thickness", Thickness);
|
||||
getattribute("curve:tangent_normal", TangentNormal);
|
||||
getattribute("geom:is_curve", IsStrand);
|
||||
getattribute("geom:curve_intercept", Intercept);
|
||||
getattribute("geom:curve_thickness", Thickness);
|
||||
getattribute("geom:curve_tangent_normal", TangentNormal);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user