https://github.com/merlinvr/blit-component
Proposed blit component for avatars and worlds to use in VRChat
https://github.com/merlinvr/blit-component
vrc vrchat
Last synced: 21 days ago
JSON representation
Proposed blit component for avatars and worlds to use in VRChat
- Host: GitHub
- URL: https://github.com/merlinvr/blit-component
- Owner: MerlinVR
- License: mit
- Created: 2018-10-26T01:12:14.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2021-04-07T22:43:50.000Z (about 4 years ago)
- Last Synced: 2025-03-26T00:23:10.906Z (about 1 month ago)
- Topics: vrc, vrchat
- Language: C#
- Size: 35.2 KB
- Stars: 8
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Blit Component
## Updated more complete description and implementation https://gist.github.com/MerlinVR/bcbb3a51336fb9a2806fce484152875fProposed blit component for avatars and worlds to use in VRChat
Canny post here:
https://vrchat.canny.io/feature-requests/p/graphicsblit-scriptsThis allows much lower CPU overhead for using render texture loops to run stateful logic in shaders for avatars and worlds. It is approximately 10x as fast as using Camera components on the CPU side since blit does not need to run culling an a number of other things. This brings each pass from ~0.3ms to ~0.03ms.
[Example using the blit component with GPU particles](https://i.imgur.com/Io85hNc.gifv)
#### Example Scene
*BlitExample.unitypackage* contains a complete setup of both the blit component loop and the camera loop that is commonly used in VRC. If you press play, both of the large quads should fade from black to white and then loop back to black.
#### Example scene game object configuration

Update0 and Update1 are identical, except the source and target textures are flipped on the BlitComponent.
