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
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
import THREE from 'three'; | |
import CANNON from 'cannon'; | |
export const generateThreeVertices = (rawVerts) => { | |
let verts = []; | |
for(let v = 0; v < rawVerts.length; v+=3){ | |
verts.push(new THREE.Vector3(rawVerts[v], | |
rawVerts[v+1], | |
rawVerts[v+2])); |
NewerOlder