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 System; | |
using System.Threading; | |
using Cysharp.Threading.Tasks; | |
namespace AsyncLockUniTask{ | |
public class AsyncLock{ | |
private readonly SemaphoreSlim semaphore; | |
public AsyncLock() => semaphore = new SemaphoreSlim(1, 1); |
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
// unity3d 2021.3.2f1 tested | |
Shader "Unlit/UrpGeometryShaderTemplate" | |
{ | |
Properties{ | |
_MainTex ("Texture", 2D) = "white" {} | |
_Color ("Color", color) = (1.0, 1.0, 1.0, 1.0) | |
} | |
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
// unity3d 2021.3.2f1 tested | |
// Modified from below gist | |
// https://gist.github.com/shivaduke28/b224ebaebf4d70b7bd7ad396ecf2af31 | |
Shader "Hidden/UrpTessellationTemplate" | |
{ | |
Properties | |
{ | |
_MainTex ("Texture", 2D) = "white" {} | |
[HDR] _Color ("Color", color) = (1, 1, 1, 1) |
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" {} | |
} |