/VRC-Screenspace-Data-Example

Hey gamers have you just been struggling to figure out how to do compute-shadery things in VRC so you can make gamer fuel?

Primary LanguageShaderLabMIT LicenseMIT

Screenspace Data Example

Hey gamers here is an example showing a geometry shader encoding multiple per-vertex attributes into a grid of screenspace pixel blocks. This exports the data directly without the need for cameras.

This data is captured into a CRT through the use of a grabpass where a different shader can perform arbitrary computations on said data.

Then we read the result of said computations to mesh attributes when actually drawing the mesh.

img

Credits:

CNLohr: CRT read/write boilerplate.

MerlinVR: Functions for encoding and decoding screenspace data. See float3's gist.

Pema99: Helpful articles and tips.