Searched refs:noiseOctavesCode (Results 1 – 1 of 1) sorted by relevance
1247 SkString noiseOctavesCode; in emitCode() local1248 noiseOctavesCode.append("float result = 0.0;"); in emitCode()1249 noiseOctavesCode.append("float ratio = 1.0;"); in emitCode()1250 noiseOctavesCode.append("for (float i = 0.0; i < octaves; i++) {"); in emitCode()1251 noiseOctavesCode.appendf("result += %s(p) / ratio;", noiseFuncName.c_str()); in emitCode()1252 noiseOctavesCode.append("p *= 2.0;"); in emitCode()1253 noiseOctavesCode.append("ratio *= 2.0;"); in emitCode()1254 noiseOctavesCode.append("}"); in emitCode()1255 noiseOctavesCode.append("return (result + 1.0) / 2.0;"); in emitCode()1257 noiseOctavesArgs, noiseOctavesCode.c_str(), &noiseOctavesFuncName); in emitCode()