VRC-Screenspace-Data-Example
所属分类:虚拟/增强现实-VR/AR
开发工具:ShaderLab
文件大小:317KB
下载次数:0
上传日期:2022-12-28 20:41:21
上 传 者:
sh-1993
说明: 嘿,游戏玩家们,你们是不是一直在努力弄清楚如何在VRC中进行计算,这样你们就可以让游戏玩家...
(Hey gamers have you just been struggling to figure out how to do compute- shadery things in VRC so you can make gamer fuel?)
文件列表:
.vscode (0, 2022-12-29)
.vscode\settings.json (1350, 2022-12-29)
Assets (0, 2022-12-29)
Assets\Kit.meta (172, 2022-12-29)
Assets\Kit (0, 2022-12-29)
Assets\Kit\CRT.meta (172, 2022-12-29)
Assets\Kit\CRT (0, 2022-12-29)
Assets\Kit\CRT\ComputeResultCRT 2.asset (2998, 2022-12-29)
Assets\Kit\CRT\ComputeResultCRT 2.asset.meta (188, 2022-12-29)
Assets\Kit\CRT\ComputeResultCRT 2.mat (2102, 2022-12-29)
Assets\Kit\CRT\ComputeResultCRT 2.mat.meta (188, 2022-12-29)
Assets\Kit\CRT\ComputeResultCRT 2.shader (5030, 2022-12-29)
Assets\Kit\CRT\ComputeResultCRT 2.shader.meta (204, 2022-12-29)
Assets\Kit\CRT\ComputeResultCRT.asset (7076, 2022-12-29)
Assets\Kit\CRT\ComputeResultCRT.asset.meta (188, 2022-12-29)
Assets\Kit\CRT\ComputeResultCRT.mat (2100, 2022-12-29)
Assets\Kit\CRT\ComputeResultCRT.mat.meta (188, 2022-12-29)
Assets\Kit\CRT\ComputeResultCRT.shader (8821, 2022-12-29)
Assets\Kit\CRT\ComputeResultCRT.shader.meta (204, 2022-12-29)
Assets\Kit\Common.cginc (2303, 2022-12-29)
Assets\Kit\Common.cginc.meta (204, 2022-12-29)
Assets\Kit\ComputeResult.renderTexture (792, 2022-12-29)
Assets\Kit\ComputeResult.renderTexture.meta (182, 2022-12-29)
Assets\Kit\ComputeResult.shader (2651, 2022-12-29)
Assets\Kit\ComputeResult.shader.meta (204, 2022-12-29)
Assets\Kit\GamerObject.mat (2573, 2022-12-29)
Assets\Kit\GamerObject.mat.meta (188, 2022-12-29)
Assets\Kit\GamerObject.shader (6681, 2022-12-29)
Assets\Kit\GamerObject.shader.meta (204, 2022-12-29)
Assets\Kit\GrabTex.mat (2272, 2022-12-29)
Assets\Kit\GrabTex.mat.meta (188, 2022-12-29)
Assets\Kit\GrabTex.renderTexture (786, 2022-12-29)
Assets\Kit\GrabTex.renderTexture.meta (188, 2022-12-29)
Assets\Kit\Make Epic Shader.mat (2045, 2022-12-29)
Assets\Kit\Make Epic Shader.mat.meta (188, 2022-12-29)
Assets\Kit\Materials.meta (172, 2022-12-29)
Assets\Kit\Materials (0, 2022-12-29)
Assets\Kit\Materials\GrabTex.mat (778, 2022-12-29)
... ...
# 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](https://github.com/cutesthypnotist/VRC-Screenspace-Data-Example/blob/master/./Images/1.png)
#### Credits:
CNLohr: [CRT read/write boilerplate](https://github.com/cutesthypnotist/VRC-Screenspace-Data-Example/blob/master/https://github.com/cnlohr/flexcrt).
MerlinVR: Functions for encoding and decoding screenspace data. See float3's [gist](https://github.com/cutesthypnotist/VRC-Screenspace-Data-Example/blob/master/https://gist.github.com/float3/3bd231ffe66e46f97958c26b42beff39).
Pema99: Helpful articles and tips.
- [Encoding and decoding Data in a grabpass](https://github.com/cutesthypnotist/VRC-Screenspace-Data-Example/blob/master/https://github.com/pema99/shader-knowledge/blob/main/tips-and-tricks.md#encoding-and-decoding-data-in-a-grabpass)
- [Easy way to show UV unwrap in clipspace](https://github.com/cutesthypnotist/VRC-Screenspace-Data-Example/blob/master/https://github.com/pema99/shader-knowledge/blob/main/tips-and-tricks.md#easy-way-to-show-uv-unwrap-in-clipspace)
- [Blitting to camera loops or cameras in general](https://github.com/cutesthypnotist/VRC-Screenspace-Data-Example/blob/master/https://github.com/pema99/shader-knowledge/blob/main/geometry-shaders.md#blitting-to-camera-loops-or-cameras-in-general)
近期下载者:
相关文件:
收藏者: