Skip to content

Instantly share code, notes, and snippets.

View starryanimation's full-sized avatar

Starry Animation starryanimation

View GitHub Profile
@dwilliamson
dwilliamson / gist:2837611
Last active November 19, 2016 21:08
Compile-time shader assembler from way back (D3D9, vs/ps 1.x). Compiles down to simply writing calculated opcodes to an array.
// COMPILE-TIME SHADER ASSEMBLER
#ifndef _INCLUDED_ASSEMBLER_H
#define _INCLUDED_ASSEMBLER_H
#ifndef _INCLUDED_D3D_H
#include "D3D.h"
#endif
@aras-p
aras-p / mvp.js
Created June 6, 2011 17:30
UNITY_MATRIX_MVP et al equivalents in script
// world, view, projection matrices
var world = obj.transform.localToWorldMatrix;
var view = cam.worldToCameraMatrix;
var proj = cam.projectionMatrix;
// the actual projection matrix used in shaders
// is actually massaged a bit to work across all platforms
// (different Z value ranges etc.)
var gpuProj = GL.GetGPUProjectionMatrix (proj, false);
var gpuMV = view * world; // UNITY_MATRIX_MV
@littlebtc
littlebtc / NicoFoxJobList.md
Created February 13, 2011 07:41
把NicoFox帶回家>////< 工作項目一覽

趁著讀書讀得快睡著的時候來趕快整理一下NicoFox的待作清單。大致可以分為簡單、困難兩個大部分。希望任何有志參與的人都能來幫一下忙qqqqqqq

如何參與?

  1. 向我報備 (?),說你要做什麼,以免衝到
  2. 申請 GitHub 帳號,Fork https://github.com/littlebtc/nicofox
  3. Fork過後你會拿到專屬你的NicoFox >////< 使用Git版本控制系統拉下來,在你自己的 Fork 裡頭完成要做的事情
  4. 完成過後請送Pull Request給我。 (進到你自己NicoFox在GitHub的頁面,按一下「Pull Request」)