cutesthypnotist / 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?

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

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

License:MIT License


Languages

Language:ShaderLab 68.9%Language:GLSL 24.7%Language:HLSL 6.4%