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; | |
using UnityEngine; | |
using UnityEngine.XR.ARSubsystems; | |
using DG.Tweening; | |
[RequireComponent(typeof(ARHitProvider), typeof(ARPointCloudProvider))] | |
public class ARCursor : MonoBehaviour | |
{ | |
public static ARCursor instance; |
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
#if UNIVERSAL_RENDERER | |
using UnityEngine; | |
#if UNITY_EDITOR | |
using UnityEditor; | |
#endif | |
using System; | |
using UnityEngine.Rendering; | |
using UnityEngine.Rendering.Universal; | |
using UnityEngine.Experimental.Rendering; |
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.IO; | |
using UnityEditor; | |
using UnityEditor.Overlays; | |
using UnityEditor.SceneManagement; | |
using UnityEditor.Toolbars; | |
using UnityEngine; | |
using UnityEngine.SceneManagement; | |
using UnityEngine.UIElements; |
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
// ScriptableRendererFeature template created for URP 12 and Unity 2022.2 | |
// Made by Alexander Ameye | |
// https://alexanderameye.github.io/ | |
using UnityEngine; | |
using UnityEngine.Rendering; | |
using UnityEngine.Rendering.Universal; | |
public class MyScriptableRendererFeature : ScriptableRendererFeature | |
{ |
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 "Hidden/Vertex Extrusion" | |
{ | |
Properties | |
{ | |
_Color ("_Color", Color) = (1, 1, 1, 1) | |
_Width ("_Width", Float) = 1 | |
_SrcBlend ("_SrcBlend", Int) = 0 | |
_DstBlend ("_DstBlend", Int) = 0 | |
} | |
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
// DRAWING MODES | |
// OUTLINE ALWAYS: STENCIL NOTEQUAL, ZTEST ALWAYS | |
// HIDDEN SURFACES: STENCIL OFF, ZTEST GREATER, OUTLINE WIDTH 0 | |
using System; | |
using UnityEngine; | |
using System.Collections.Generic; | |
using UnityEngine.Rendering; | |
using UnityEngine.Rendering.Universal; |
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 UnityEngine.Rendering; | |
using UnityEngine.Rendering.Universal; | |
public enum ExtrusionMethod | |
{ | |
ScaleObject, | |
ScaleObjectNormalized, | |
ExtrudeAlongNormal1, |
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
// Two-pass box blur shader created for URP 12 and Unity 2021.2 | |
// Made by Alexander Ameye | |
// https://alexanderameye.github.io/ | |
Shader "Hidden/Blur" | |
{ | |
Properties | |
{ | |
_MainTex ("Texture", 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
// ScriptableRendererFeature template created for URP 12 and Unity 2021.2 | |
// Made by Alexander Ameye | |
// https://alexanderameye.github.io/ | |
using UnityEngine; | |
using UnityEngine.Rendering.Universal; | |
public class TemplateFeature : ScriptableRendererFeature | |
{ | |
[System.Serializable] |
NewerOlder