Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Custom Vertex Colors Material
#1
I'm aware of the existing VertexColorMaterial, but I need to be able to overlay vertex colors over a texture.

I'm writing a shader to do so, but I'm stuck figuring out how to populate the vertex colors buffer.

On my CustomVertexColorMaterial I've noticed the ProcessMeshDataChannels function which I can override, but that doesn't seem to get called. It also doesn't seem to be overriden on the existing VertexColorMaterial.

The next path I might pursue is setting renderingItem.AdditionalVertexBuffers in ApplyRenderingItemMaterial in my CustomVertexColorEffect. Though I'm not sure that's the correct way to go.

I'm wondering if you might point me in the right direction. Where do I set the vertex colors which the shader reads from?
  


Messages In This Thread
Custom Vertex Colors Material - by zacfromaustinpowder - 07-15-2024, 08:54 AM
RE: Custom Vertex Colors Material - by abenedik - 07-17-2024, 11:34 AM

Forum Jump:


Users browsing this thread:
1 Guest(s)