Skip to content

Instantly share code, notes, and snippets.

View James2022-rgb's full-sized avatar

James0124 James2022-rgb

View GitHub Profile
■UnityでLuaを使いたいので、色々行った検証などをメモしておく
▼目次
○そもそも、Luaと他言語連携ってどうやるのよ?
 ・VC++で色々試して、基本的な使い方はわかった
 ・使い方自体は簡単だったが、思っていたほど単純な物ではなかった
  ・Stateを作って、そこで値をやり取りする事
  ・スタック管理で値を取る事
@simonbroggi
simonbroggi / TouchScriptInputModule.cs
Last active May 7, 2024 09:16
Input Module to use the new unity ui with multitouch from https://github.com/TouchScript
/**
* Input Module to use the new unity ui with multitouch from https://github.com/TouchScript
* Install TouchScript in your unity project, then add an EventSystem and replace the InputModules by this one.
*
*
* Basically modified TouchInputModule from
* https://bitbucket.org/Unity-Technologies/ui/src/5fc21bb4ecf4b40ff6630057edaa070252909b2e/UnityEngine.UI/EventSystem/InputModules/TouchInputModule.cs?at=4.6
* and changing ProcessTouchEvent to take events from TouchScript
*
* Got the TouchScript stuff from
@staltz
staltz / introrx.md
Last active May 15, 2025 10:37
The introduction to Reactive Programming you've been missing
@danielcosta
danielcosta / integrating_jira_with_sourcetree.md
Last active November 7, 2023 21:03
Learn how to integrate your SourceTree repositories with JIRA

Integrating JIRA with SourceTree

Overview

You will learn how to link your JIRA tasks directly on SourceTree

Step by step

1. Setting

@assaframan
assaframan / mincode.cpp
Created November 24, 2012 11:56
min code to render OGRE with d3d11 render system
#include <conio.h>
#include "Ogre.h"
#include "OgreFrameListener.h"
#include "OgreShaderGenerator.h"
/////////////////////////////////////////////////////////////////////////////////////////////////
class ShaderGeneratorTechniqueResolverListener : public Ogre::MaterialManager::Listener
{
public:
@keijiro
keijiro / fbm-camera-shaking-effect.md
Created September 16, 2012 06:30
Perlin Noise (fBm) を使ったカメラ揺れエフェクト

Perlin Noise (fBm) を使ったカメラ揺れエフェクト

概要

Perlin Noise (fBm 関数)をオブジェクトの動きに取り入れることによって、色々と面白い効果が生み出せます。例えば、これを位置と回転に適用するだけで、カメラの手ブレ風エフェクトなどを作り出せます。

サンプル

http://keijiro.github.com/unity-perlin/

@jboner
jboner / latency.txt
Last active May 19, 2025 16:12
Latency Numbers Every Programmer Should Know
Latency Comparison Numbers (~2012)
----------------------------------
L1 cache reference 0.5 ns
Branch mispredict 5 ns
L2 cache reference 7 ns 14x L1 cache
Mutex lock/unlock 25 ns
Main memory reference 100 ns 20x L2 cache, 200x L1 cache
Compress 1K bytes with Zippy 3,000 ns 3 us
Send 1K bytes over 1 Gbps network 10,000 ns 10 us
Read 4K randomly from SSD* 150,000 ns 150 us ~1GB/sec SSD