Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- I would like to see a GlobalShaderKeyword added that is only valid in VRChat.exe.
- VRChat.exe でのみ有効な GlobalShaderKeyword を追加してほしいです。
- In open-beta-announcements for shader authors, there is an announcement that we have added a variable that can be used in shaders. I think that would be great!
- シェーダ作者向けの open-beta-announcements にて、シェーダ内で使用可能な変数を追加したとのアナウンスがありました。素晴らしいことだと思います!
- On top of that, I would like to have the ability to switch my Unity shaders to work outside of VRChat.
- その上で、私の Unity シェーダが VRChat 以外でも動作するよう、スイッチする機能が欲しいです。
- For example, a GlobalShaderKeyword in the form of something like this would allow my shaders to detect and properly handle behavior outside of VRChat.
- 例えばこのような形で GlobalShaderKeyword があれば、私のシェーダはVRChat 外での動作を検出し適切に処理することができます。
- ```
- // in C#
- Shader.EnableKeyword("VRCHAT_ON"); // global keyword
- ```
- ```
- // in my shader code
- #pragma multi_compile VRCHAT_ON
- #ifdef VRCHAT_ON
- float _VRChatCameraMode;
- // other code for VRChat
- #endif
- ```
- https://discord.com/channels/189511567539306508/503009489486872583/1027358043538735155
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement