Forum

Color Spread input on DX11 Shader

Hello vvvvers!

I am starting to get into shaders in DX11 and am still trying to figure it all out.

At the moment I am stuck trying to receive an input with a spread of colors to use it inside a basic shader.

The idea is to be able to individually color vertexes or triangles from a kinect pointcloud mesh based on the input color spread.

Could anyone shed some light on this please, or point me in the right direction?

Thanks!

hi there to do that, u need to create a dynamic buffer
also u need a VertexID
see a patch

VertexColorByID.rar (1.8 kB)

Thanks a lot! Having a look now.

That worked like a charm antokhio, just what I needed! Thanks!