I want to make some code to create a sphere geometry like the TestUtils.createSphere() but with uvMapping and some more options and to learn more about geometry
I made it but i've got some problem with light.
With TestUtils.createSphere() the sphere is lighted correctly (part of the sphere shadowed)
With the same code but with my createSphere the sphere is :
- not lighted when the light is on negative Z axis
- completely lighted with no shadows on it when the light is on positive Z axis
i don't understand the problem with my geometry. With culling on; the normals seems good. What other parameters must be set for the geometry to be correctly lighted ?
(for the moment i only make the coord points (in correct order for the normal but i don't explicity make the normal) and i put the texture Coords)
Thanks for help,