MCPcopy Create free account
hub / github.com/Theverat/NormalmapGenerator / random

Method random

src_generators/ssaogenerator.cpp:114–117  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

112}
113
114double SsaoGenerator::random(double min, double max) {
115 double f = (double)rand() / RAND_MAX;
116 return min + f * (max - min);
117}
118
119float SsaoGenerator::lerp(float v0, float v1, float t) {
120 return (1 - t) * v0 + t * v1;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected