Change Loose Verts Colour

Hey guys,

How can I alter the color and/or innerColor of the loose_points_frag.glsl shader using the assigned diffuse_color (viewport display) of an object using Blenders source code.

I want to make different point cloud objects consisting of loose vertices to be better readable. See above example of point cloud display in grey/ black. My goal would be to have one cube colored red and the other one blue.

Here’s the commit by @Hypersomniac on the developer site with the loose points frag shader

I am quite new to programming in Blender and openGL so any hint or reference to similar projects would be great.

Thanks in advance,