Skip to content

Instantly share code, notes, and snippets.

View kuroyam's full-sized avatar

Shun Kuroda kuroyam

  • GMO Pepabo, Inc.
  • Tokyo
View GitHub Profile
@t-takasaka
t-takasaka / gist:99af38d930b2284a499c
Last active September 11, 2015 08:06
shader test
bool HelloWorld::init(){
if(!Layer::init()){ return false; }
//ブラーの幅等を設定
const int maxRadius = 64;
int step = 1, radius = 40;
int radiusWithStep = radius / step;
Vec2 *weights = new Vec2[maxRadius];
calculateGaussianWeights(radiusWithStep, weights);