Skip to content

Instantly share code, notes, and snippets.

View kojdj0811's full-sized avatar

Dreamlesser kojdj0811

View GitHub Profile
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);
// 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{
// 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)
@kojdj0811
kojdj0811 / URP_Normal.shader
Created September 6, 2022 08:21 — forked from shivaduke28/URP_Normal.shader
simple URP Lit shaders for learning
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" {}
}