【無料】OSC不要アナログ時計シェーダー【VRChat】【lilToon】
- 無料ダウンロード商品¥ 0
- ポテチ代ダウンロード商品¥ 300



VRChatのアップデートにより、アバターでも簡単に時刻が取得できるようになったため、アナログ時計の針の動きをlilToonカスタムシェーダーとして実装しました。 時計の針の画像を時刻に応じてシェーダー内で回転させるため、OSCやアニメーションは必要ありません。 With the recent VRChat update making it easier to retrieve time on avatars, I have implemented analog clock hand movement as a lilToon Custom Shader. Since the clock hands are rotated within the shader based on the current time, no OSC or animations are required. おことわり: 本アセットに腕時計本体(ベゼルやバンド等)は含まれません。商品画像の本体は [A00 腕時計 -Wrist watch- - こんの店 - BOOTH](https://booth.pm/ja/items/5429463) をお借りしています。 ライセンス: 大したことをしていないので、ソースコード/アセット含め全て改変や有償/無償商品への組み込みを自由とします。クレジットの有無も自由です。
使い方と注意事項
- `Someka/AnalogClockHands` シェーダーをマテリアルにセットしてください。 - 文字盤/針のテクスチャとマテリアル、プレハブのサンプルを同梱しています。 - lilToon カスタムシェーダーであるため、基本的に通常のlilToonと同じように効果を設定することができます。 - 自作の針・文字盤画像を使用する際は、テクスチャの「Alpha is transparency」がONであることを確認してください。 - 動作サンプル的なアセットであるため、見た目が簡素で、上下の区別のために文字盤にロゴが入っています。適宜カスタムしてお使いください。 - Unity の Edit モード中は適当な時刻を示します。Play モード / VRChat 上ではワールドから時刻を受け取って表示します。 ### シェーダーの詳細設定 - メインテクスチャを使用:ONでメインテクスチャに指定した画像が背景(文字盤)として機能し、OFFで透明として扱われます。 - 滑らかな秒針:ONで秒針がスムーズに動き、OFFで1秒ごとに動きます。 - Apply the `Someka/AnalogClockHands` shader to your material. - Includes sample textures for the clock face/hands, materials, and a prefab. - As this is a lilToon Custom Shader, you can configure effects just like a standard lilToon material. - When using your own hand or clock face images, ensure that "Alpha is transparency" is enabled in the texture settings. - This asset is intended as a functional sample, so the appearance is simple and the clock face includes a logo to help distinguish the top from the bottom. Please customize it as needed. - In Unity's Edit Mode, the clock will display a random time. In Play Mode or within VRChat, it will receive and display the actual time from the world. ### Detailed Shader Settings * Use Main Texture: When ON, the image assigned to the Main Texture acts as the background (clock face). When OFF, it is treated as transparent. * Smooth Second Hand: When ON, the second hand moves smoothly. When OFF, it ticks once per second.
Thanks
- [A00 腕時計 -Wrist watch- - こんの店 - BOOTH](https://booth.pm/ja/items/5429463) 商品画像用に腕時計本体をお借りしました。 - [lilToonのカスタムシェーダーを作るときのTips - koturnの日記](https://koturn.hatenablog.com/entry/2023/08/23/190000#others-allinone-inspector-template) lilToon カスタムシェーダー製作の解説記事/カスタムテンプレート配布。 本アセットはこちらのテンプレートをベースに作成しました。



