double SGNewCloud::sprite_density = 1.0;
-
SGNewCloud::SGNewCloud(string type,
const SGPath &tex_path,
string tex,
z = height * cos(elev) * 0.5f;
}
- // Determine the height and width as scaling factors on the minimum size (used to create the quad)
+ // Determine the height and width as scaling factors on the minimum size (used to create the quad).
float sprite_width = 1.0f + sg_random() * (max_sprite_width - min_sprite_width) / min_sprite_width;
float sprite_height = 1.0f + sg_random() * (max_sprite_height - min_sprite_height) / min_sprite_height;