This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UdonSharp; | |
using UnityEngine; | |
using UnityEngine.UI; | |
using VRC.SDKBase; | |
using VRC.Udon; | |
namespace Tsukemonoya | |
{ | |
[UdonBehaviourSyncMode(BehaviourSyncMode.Manual)] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UdonSharp; | |
using UnityEngine; | |
namespace TKMNY | |
{ | |
[UdonBehaviourSyncMode(BehaviourSyncMode.NoVariableSync)] | |
public sealed class LightMapHolder : UdonSharpBehaviour | |
{ | |
[SerializeField] Texture[] lightmaps; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UdonSharp; | |
using UnityEngine; | |
using UnityEngine.UI; | |
using VRC.SDKBase; | |
namespace VRCTools | |
{ | |
[UdonBehaviourSyncMode(BehaviourSyncMode.Manual)] | |
public class GlobalSlider : UdonSharpBehaviour |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using UnityEditor; | |
using UnityEditor.SceneManagement; | |
using VRC.Udon; | |
using VRC.Udon.Editor; | |
using UdonSharp; | |
using UdonSharpEditor; | |
namespace CustomUdonSharpEditor | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
public class PlayerController : MonoBehaviour | |
{ | |
[SerializeField] private float maxSpeed = 7f; // meter per second | |
[SerializeField] private float acceleration = 20f; | |
[SerializeField] private float maxRotation = 600f; // degree | |
[Space] | |
[SerializeField] private Vector3 velocity; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using System; | |
using UnityEngine.ResourceManagement.ResourceProviders; | |
using UnityEngine.ResourceManagement.ResourceLocations; | |
using UnityEngine.Video; | |
using Cysharp.Threading.Tasks; | |
namespace Hoge | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ref: https://qiita.com/aa_debdeb/items/2739745b3ab1a003d767 | |
Shader "Skybox/UV" | |
{ | |
Properties | |
{ | |
[NoScaleOffset] _Tex ("Tex", 2D) = "white" {} | |
_Scale("Scale", float) = 1 | |
} | |
SubShader |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Shader "MyShader/URP_Normal" | |
{ | |
Properties | |
{ | |
[Header(Base Color)] | |
[MainTexture]_BaseMap("_BaseMap (Albedo)", 2D) = "white" {} | |
[HDR][MainColor]_BaseColor("_BaseColor", Color) = (1,1,1,1) | |
[Header(Normal)] | |
[MainTexture]_NormalMap("_NormalMap", 2D) = "white" {} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Shader "MyShader/SimpleLit" | |
{ | |
Properties | |
{ | |
_MainTex ("Texture", 2D) = "white" {} | |
_NormalTex ("Normal", 2D) = "white" {} | |
_Light ("Light", Vector) = (1,1,1) | |
} | |
SubShader | |
{ |
NewerOlder