Commit 37d7a3d2 authored by Bill Lorensen's avatar Bill Lorensen Committed by Kitware Robot
Browse files

Merge topic 'Bug_TexturedSphereSource'

c1b7705a

 BUG: TexturedSphereSource bad texture coordinates
Acked-by: Kitware Robot's avatarKitware Robot <kwrobot@kitware.com>
Merge-request: !2129
parents fd8698ff c1b7705a
......@@ -102,7 +102,7 @@ int vtkTexturedSphereSource::RequestData(
for (i=0; i <= this->ThetaResolution; i++)
{
theta = i * deltaTheta;
tc[0] = 2.0 * theta/vtkMath::Pi();
tc[0] = theta/(2.0 * vtkMath::Pi());
for (j=0; j <= this->PhiResolution; j++)
{
phi = j * deltaPhi;
......
969c1b03d4d4a450f61ea3897caf9dd4
f4053792345cb46d0a6f2d39b3e5767f
1b77aface6652194cd699260a1e4c861
1fbb7381bc8fadfb84bb98c8242de444
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment