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.Collections.Generic; | |
using UnityEngine.Rendering.Universal; | |
using UnityEngine.Rendering; | |
using UnityEngine.Scripting.APIUpdating; | |
namespace UnityEngine.Experimental.Rendering.Universal | |
{ | |
[MovedFrom("UnityEngine.Experimental.Rendering.LWRP")] public class RenderObjectsPass : ScriptableRenderPass | |
{ | |
RenderQueueType renderQueueType; |
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.Collections.Generic; | |
using System.Runtime.InteropServices; | |
using UnityEngine; | |
class Render : MonoBehaviour | |
{ | |
struct DrawData | |
{ | |
public Vector3 Pos; | |
public Quaternion Rot; |
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
MarchingCubesGPU.cs: | |
... | |
// DrawProceduralIndirect | |
ComputeBuffer argsBuffer; | |
[StructLayout(LayoutKind.Sequential)] | |
struct DrawCallArgBuffer | |
{ | |
public const int size = | |
sizeof(int) + | |
sizeof(int) + |
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.Collections.Generic; | |
/// <summary> | |
/// A simple static class to get and set globally accessible variables through a key-value approach. | |
/// </summary> | |
/// <remarks> | |
/// <para>Uses a key-value approach (dictionary) for storing and modifying variables.</para> | |
/// <para>It also uses a lock to ensure consistency between the threads.</para> | |
/// </remarks> | |
public static class GlobalVariables |
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
/** | |
MIT License | |
Copyright (c) 2023 Bayat Games | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights | |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
copies of the Software, and to permit persons to whom the Software is |
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
# Use the following commands to bind/unbind SSL cert | |
# netsh http add sslcert ipport=0.0.0.0:443 certhash=3badca4f8d38a85269085aba598f0a8a51f057ae "appid={00112233-4455-6677-8899-AABBCCDDEEFF}" | |
# netsh http delete sslcert ipport=0.0.0.0:443 | |
$HttpListener = New-Object System.Net.HttpListener | |
$HttpListener.Prefixes.Add("http://+:80/") | |
$HttpListener.Prefixes.Add("https://+:443/") | |
$HttpListener.Start() | |
While ($HttpListener.IsListening) { | |
$HttpContext = $HttpListener.GetContext() | |
$HttpRequest = $HttpContext.Request |
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 "PostDepthToWorldPos" | |
{ | |
Properties | |
{ | |
} | |
SubShader | |
{ | |
Tags { "RenderType"="Transparent" "Queue"="Transparent" } | |
LOD 100 |
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
// https://frarees.github.io/default-gist-license | |
using System.IO; | |
using System.Reflection; | |
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
using UnityEditor; | |
using Microsoft.CSharp; | |
using System.CodeDom.Compiler; |
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
// A modification of Kyle Halladay's Pencil Sketch Effect shader | |
// http://kylehalladay.com/blog/tutorial/2017/02/21/Pencil-Sketch-Effect.html | |
// Blends between two scales of hatching based on distance and camera fov to | |
// keep a perceptually constant hatching scale (assuming consistent mesh UVs). | |
Shader "Unlit/SingleObjectHatch_DistanceAndFOVCorrected" | |
{ | |
Properties | |
{ |
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 "Custom/ACNH_SewingCloth" | |
{ | |
Properties | |
{ | |
[NoScaleOffset] _MainTex ("Albedo (RGB)", 2D) = "white" {} | |
[NoScaleOffset] _BumpMap ("Normal Map", 2D) = "bump" {} | |
[NoScaleOffset] _EdgeAlpha ("Alpha", 2D) = "white" {} | |
_Cutoff ("Alpha Test Cutoff", Range(0,1)) = 0.5 | |
_Offset ("Offset (XY)", Vector) = (0,0,0,0) |