/MicroSplatVRC

This script and setup allows you to use the MicroSplat shader in VRChat

Primary LanguageC#MIT LicenseMIT

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:


Setup:

  • Install the latest release, the script will automatically run when building the world.

  • Open MicroSplatTerrain.cs

1

  • Now find the line:

float basemapDistance = 0;

  • and replace it with

float basemapDistance = terrain.basemapDistance; //0;

2


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

3


  • 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.

4a 4b

  • 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

5 5b


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

image