This file contains 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
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); |