forked from speed-dreams/speed-dreams-code
fix bug with OsgMoon
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@5595 30fe4595-0a0c-4342-8851-515496e4dcbd Former-commit-id: 18f1504df9d09d3da74110a0a553976fa2cea28a Former-commit-id: cc3fb79dff0a2185d7b45ce4f61b9d8746dfe4aa
This commit is contained in:
parent
bf0c5fc1c5
commit
20c718242b
1 changed files with 1 additions and 1 deletions
|
@ -35,7 +35,7 @@ osg::Node* SDMakeSphere(double radius, int slices, int stacks)
|
|||
osg::Geode* geode = new osg::Geode;
|
||||
|
||||
drho = SD_PI / (float) stacks;
|
||||
dtheta = SD_2PI / (float) slices;
|
||||
dtheta = (2.0 * SD_PI) / (float) slices;
|
||||
|
||||
ds = 1.0 / slices;
|
||||
dt = 1.0 / stacks;
|
||||
|
|
Loading…
Reference in a new issue