Shader "MaterialPropertyDrawer"
{
Properties
{
_MainTex("Texture", 2D) = "white" {}
[HideInInspector] _MainTex2("Hide 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
| import { Document, NodeIO, Primitive } from '@gltf-transform/core'; | |
| const document = new Document(); | |
| const buffer = document.createBuffer(); | |
| const position = document.createAccessor() | |
| .setType('VEC3') | |
| .setBuffer(buffer) | |
| .setArray(new Float32Array([ | |
| 0, 0, 0, // ax,ay,az |
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
| // PURPOSE: convert draco-pnts to glb (ie. 3dTiles v1.0 to v1.1) | |
| // INSTALL: npm install draco3d gltfpack | |
| // RUN: | |
| // > node infolderPNTS outfolderGLB | |
| import fs from 'fs'; | |
| import draco3d from 'draco3d'; | |
| import gltfpack from 'gltfpack'; | |
| const inFolder = process.argv.slice(2)[0] || 'infolder'; |
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
| hader "Unlit/GridOverlay" | |
| { | |
| Properties | |
| { | |
| _GridSize("Grid Size", Float) = 10 | |
| _Grid2Size("Grid 2 Size", Float) = 160 | |
| _Grid3Size("Grid 3 Size", Float) = 320 | |
| _Alpha ("Alpha", Range(0,1)) = 1 | |
| } | |
| SubShader |
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; | |
| using System.Collections.Concurrent; | |
| using System.IO; | |
| using System.Threading.Tasks; | |
| using UnityEditor; | |
| using UnityEditorInternal; | |
| using UnityEngine; | |
| /// <summary> | |
| /// Uses file system watcher to track changes to specific files in the project directory. |
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
| #!/bin/sh | |
| print_usage() { | |
| echo "usage: compress_video <input_file>" | |
| echo "supported formats: mp4, webm, mkv, mov, avi, flv" | |
| } | |
| get_extension() { | |
| f="${1##*/}" | |
| case "$f" in |
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
| ######################################## | |
| # Bakery .gitignore | |
| # Ignore: https://geom.io/bakery/wiki/index.php?title=How_do_I...#How_do_I_use_git.2Fcollab.2Fother_version_control_system_with_Bakery.3F | |
| # Never ignore: https://geom.io/bakery/wiki/index.php?title=How_do_I...#How_do_I_share_a_scene_with_someone_who_doesn.E2.80.99t_have_Bakery_installed.3F | |
| ######################################## | |
| ############# BAKERY ASSETS ############ | |
| # Ignore Bakery Assets folder | |
| /[Aa]ssets/Bakery/* |
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 System.Collections.Generic; | |
| using UnityEngine; | |
| // @kurtdekker | |
| // | |
| // This is to take any continuous quantity and change it from one value | |
| // to another over time. This code is for floats. It can be adapted to work for: | |
| // | |
| // Vector2, Vector3, Vector3 |
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 UNITY_EDITOR | |
| using System.Collections; | |
| using System.Collections.Generic; | |
| using UnityEngine; | |
| using UnityEngine.UIElements; | |
| using UnityEditor; | |
| using UnityEditor.UIElements; | |
| // Based on: https://forum.unity.com/threads/save-rendertexture-or-texture2d-as-image-file-utility.1325130/ | |
| public class TriangleTexturePluginWindow : EditorWindow |

