Sampling Screen Space Vertex Colors

Godot Version

Godot 4.3

Question

Hey folks! I’d like to sample the vertex colors as a screen space texture, similar to hint_depth_texture and hint_normal_roughness_texture, and use it in a shader.

How can I best go about doing this? I wasn’t sure where to start

I dont think you can as the screen space texture is a texture and not a mesh with vertices.

What kind of effect are you wanting to do using the vert colors of the meshes on screen?

I’m creating my own outline shader using the Depth and Normal textures, but I also want to include vertex colors. This way I can have very precise control over where the edges get drawn.
Similar to this: https://linework.ameye.dev/section-map/