Gets edit more from the current object and displays it as a path. this is how both hair and particle edit modes are supposed to work. This only covers path itself, it doesn't do anything like keys visualization or selection. However, it's already possible to comb and such. Only implements particle mode. There are also some settings to do soft body and cloth. No idea yet what that all is about. Copy-on-write is not supported either, this is due to some edit mode ownership problems which are to be addressed from dependency graph side. Shading is dead-simple: uses tangent as a color. This is where i hope to get some help from Clément.
13 lines
177 B
GLSL
13 lines
177 B
GLSL
uniform mat4 ProjectionMatrix;
|
|
|
|
in vec3 tangent;
|
|
in vec3 viewPosition;
|
|
flat in float colRand;
|
|
out vec4 fragColor;
|
|
|
|
void main()
|
|
{
|
|
fragColor.rgb = tangent;
|
|
fragColor.a = 1.0;
|
|
}
|