Skip to content

Instantly share code, notes, and snippets.

@LotteMakesStuff
LotteMakesStuff / 1.md
Last active June 30, 2025 09:30
UPM: How to make a custom package

UPM: How to make a custom package So, Unity has this shiny new package manager, and you have code you want to share between projects - wouldn't it be great if we could bundle up our shared code and plug it into all the projects that need it? Let's figure out how to make our own Package!


Todo

  • Modify the project manifest
  • Make a package manifest
  • Package the manifest up with some test code
  • Try it out in Unity!

@nemotoo
nemotoo / .gitattributes
Last active April 4, 2026 13:03
.gitattributes for Unity3D with git-lfs
## Unity ##
*.cs diff=csharp text
*.cginc text
*.shader text
*.mat merge=unityyamlmerge eol=lf
*.anim merge=unityyamlmerge eol=lf
*.unity merge=unityyamlmerge eol=lf
*.prefab merge=unityyamlmerge eol=lf
@graphitemaster
graphitemaster / T0.md
Last active July 26, 2025 12:53
Vulkan Tutorial

Tutorial 0

What is Vulkan

Vulkan is a low-overhead, cross-platform 3D graphics and compute API.

Vulkan targets

Vulkan targets high-performance realtime 3D graphics applications such as games and interactive media across multiple platforms providing higher performance and lower CPU usage.

anonymous
anonymous / gist:f780617240fa7b5c0d04
Created April 9, 2015 02:35
頂点グループの名前で頂点上に法線方向にボーンを作ってくれるpython for blender
#!BPY
import bpy
#初期化
obj = bpy.context.active_object
mesh = obj.data
#オブジェクトのグローバル座標格納
bx=obj.location.x
by=obj.location.y
@koron
koron / what_is_vim_script_files.mkd
Last active August 29, 2015 14:05
Vim界隈(Vimスク本を含む)における「プラグイン」や「スクリプトファイル」などの用語についての補足文

Vimのスクリプトファイル

VimおよびVim scriptにおいて、 スクリプトファイルとはVim scriptが記録されたファイルの総称です。 それをVimに読み込ませる(:source)ことで、 記録された一連の手続きを実行できます。

プラグインとは、Vimの起動時に自動的に読み込まれる(実行される)、 一部のスクリプトファイルのことです。 一部というのは、オプション'runtimepath'に含まれる各ディレクトリの下の

@patriciogonzalezvivo
patriciogonzalezvivo / GLSL-Noise.md
Last active May 5, 2026 12:05
GLSL Noise Algorithms

Please consider using http://lygia.xyz instead of copy/pasting this functions. It expand suport for voronoi, voronoise, fbm, noise, worley, noise, derivatives and much more, through simple file dependencies. Take a look to https://github.com/patriciogonzalezvivo/lygia/tree/main/generative

Generic 1,2,3 Noise

float rand(float n){return fract(sin(n) * 43758.5453123);}

float noise(float p){
	float fl = floor(p);
  float fc = fract(p);
@voluntas
voluntas / shiguredo.rst
Last active January 17, 2026 03:55
時雨堂コトハジメ
@masuidrive
masuidrive / gist:5169096
Created March 15, 2013 11:11
nodeとmrubyのissuesとcommentsの単語分布
1, this, 17544
2, that, 15950
3, have, 9742
4, with, 9584
5, http, 8688
6, node, 6024
7, should, 5743
8, error, 4285
9, test, 4209
10, work, 4175
@hayajo
hayajo / changelog_en.md
Last active March 18, 2026 16:53
ChangeLog を支える英語

ChangeLog を支える英語

ChangeLog を書く際によく使われる英語をまとめました。

ほとんど引用です。

基本形