The image shows a sphere and a cylinder that have their uv values applied to their vertex colors and vertex positions. Wireframe shows the actual location of the meshes. The thing is the colors only work if the Color_shader input and the Constant_shader inputs are not connected. They seem to override instead of combining with the vertex colors. I'm not sure how useful this is but I thought it was interesting.
Edit: One more thing the W input to the VectorFromComponents node should not be connected. Position is just XYZ and the added W seems to do weird things.
Workspace Vertex Color Shaders Work - sort of
-
clintonman
- Captain
- Posts: 5659
- Joined: 21 May 2009, 21:08
- Type the number ten into the box: 0
- Location: California
Workspace Vertex Color Shaders Work - sort of
Last edited by clintonman on 28 Mar 2017, 05:03, edited 1 time in total.
-
clintonman
- Captain
- Posts: 5659
- Joined: 21 May 2009, 21:08
- Type the number ten into the box: 0
- Location: California
Re: Workspace Vertex Color Shaders Work - sort of
I was wrong. The color and constant shaders can combine with vertex colors. The shaderinput node color output will read the vertex colors. This stuff might be useful after all...
-
Draise
- Captain
- Posts: 3200
- Joined: 21 Sep 2009, 19:33
- Type the number ten into the box: 0
- Location: Bogota, Colombia
Re: Workspace Vertex Color Shaders Work - sort of
-
FHembree
- Master Chief Petty Officer
- Posts: 337
- Joined: 21 Feb 2011, 17:43
- Type the number ten into the box: 9
Re: Workspace Vertex Color Shaders Work - sort of
That's interesting, is this an object script?
Does it work I assume only with D3D materials or will it work with yafaRay materials?, Vray?
Does it work I assume only with D3D materials or will it work with yafaRay materials?, Vray?
-
clintonman
- Captain
- Posts: 5659
- Joined: 21 May 2009, 21:08
- Type the number ten into the box: 0
- Location: California
Re: Workspace Vertex Color Shaders Work - sort of
It's for D3D materials only. I think vertex shaders are only for realtime technologies like directx and opengl. It might be added to Yafaray as a displacement shader preview. I haven't tested it with a textures yet. If it does work I'll add it.FHembree wrote:That's interesting, is this an object script?
Does it work I assume only with D3D materials or will it work with yafaRay materials?, Vray?
-
clintonman
- Captain
- Posts: 5659
- Joined: 21 May 2009, 21:08
- Type the number ten into the box: 0
- Location: California
Re: Workspace Vertex Color Shaders Work - sort of
Tested and it doesn't work with textures 

