https://github.com/TealDealMeal/MicroSplatVRC
This script and setup allows you to use the MicroSplat shader in VRChat
https://github.com/TealDealMeal/MicroSplatVRC
microsplat shader terrain vrc vrchat
Last synced: about 2 months ago
JSON representation
This script and setup allows you to use the MicroSplat shader in VRChat
- Host: GitHub
- URL: https://github.com/TealDealMeal/MicroSplatVRC
- Owner: TealDealMeal
- License: mit
- Created: 2023-06-01T14:44:42.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-06-14T11:24:26.000Z (almost 2 years ago)
- Last Synced: 2024-10-24T06:29:23.589Z (6 months ago)
- Topics: microsplat, shader, terrain, vrc, vrchat
- Language: C#
- Homepage:
- Size: 40 KB
- Stars: 6
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# MicroSplatVRC
This script and setup allows you to use the MicroSplat shader in VRChat.MicroSplat by itself, doesn't work with VRChat as it relies on runtime components to function.
With this system, you will only have access to the shader itself, a lot of features might not even work.
I haven't done enough testing, you will probably have to play around with it and see for yourself.---
### Requirements:
- [MicroSplat](https://assetstore.unity.com/packages/tools/terrain/microsplat-96478)---
### Setup:
- Install the latest release, the script will automatically run when building the world.
---
- Open MicroSplatTerrain.cs

- Now find the line:
```float basemapDistance = 0;```
- and replace it with
```float basemapDistance = terrain.basemapDistance; //0;```

---
- Now change the "Base Map Dist." on the Terrain to whatever value you need, as MicroSplat likely set it to 0

---
- Lastly, you want to check your "Terrain Width and Length", as you need to set these same values in MicroSplat Shader Generator's "Global UV Scale", otherwise the textures in the editor will show up differently when compared to in-game.

- X for Width
- Y for Length---
(Optional)
- To change texture resolution, you have to change the resolution of the texture itself, then click Update in the MicroSplatConfig

---
- That's all, have fun experimenting with MicroSplat!
