This file contains 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/BlendingSurfaceShader" { | |
Properties { | |
[NoScaleOffset] _NoiseTex ("Noise", 2D) = "white" {} | |
[NoScaleOffset] _BottomDiffuseTex ("Bottom diffuse", 2D) = "white" {} | |
[NoScaleOffset] [Normal] _BottomNormalTex ("Bottom normal", 2D) = "bump" {} | |
[NoScaleOffset] _MiddleDiffuseTex ("Middle diffuse", 2D) = "white" {} | |
[NoScaleOffset] [Normal] _MiddleNormalTex ("Middle normal", 2D) = "bump" {} |
This file contains 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
/** | |
* WRLLoader class | |
*/ | |
class WRLLoader { | |
/** | |
* load method | |
* @returns {Promise} | |
*/ | |
load(path) { | |
const xhr = new XMLHttpRequest(); |
This file contains 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.Linq; | |
using UnityEditor; | |
using UnityEngine; | |
namespace AnthelmeDumontTools | |
{ | |
public class ReplaceDuplicateMeshesEditorWindow : EditorWindow | |
{ | |
private GameObject[] _selectedObjects; |
This file contains 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/SilhouetteShader" | |
{ | |
Properties | |
{ | |
_SilhouetteColor("Silhouette Color", Color) = (0,1,0,1) | |
} | |
SubShader | |
{ | |
Tags{"Queue"="Geometry+1" "RenderType" = "Geometry"} |
This file contains 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.UIElements; | |
using UnityEngine.UIElements.Experimental; | |
public class Animation : MonoBehaviour | |
{ | |
[SerializeField] private Transform transform; | |
[SerializeField] private UIDocument uiDocument; | |
[SerializeField] private int durationMs = 3000; |
This file contains 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.IO; | |
using System.Threading; | |
using System.Threading.Tasks; | |
using Newtonsoft.Json; // https://docs.unity3d.com/Packages/com.unity.nuget.newtonsoft-json@2.0/manual/index.html | |
using UnityEngine; | |
public static class FileUtils | |
{ | |
public static string RootDirectory | |
{ |
This file contains 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
<ui:UXML> | |
<Style> | |
:root { | |
--search-bar-height: 40px; | |
--text-color: rgb(255, 255, 255); | |
--background-color: rgba(0, 0, 0, 0.8); | |
--animation-duration: 500ms; | |
} | |
.search-panel { |
This file contains 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 Unity.Netcode; | |
using UnityEngine; | |
using UnityEngine.SceneManagement; | |
namespace Router | |
{ | |
public static class SceneRouter | |
{ | |
public enum SceneType |
OlderNewer