If I want to plot an ‘inverted’ surface, like the cupcake mold in the top figure below.
I set the light directions to be
lights = [
AmbientLight(RGBf(1, 1, 1)),
SpotLight(0.4*RGBf(1, 1, 1), Point3f(10, 0, 2.5), Vec3f(-1, 0, -0.1), Vec2f(0.25pi, 0.25pi))
]
I haven’t optimized the lighting effects yet, but right now it’s coming from the right side of the screen. Notice that the lighting for the upper gray mold is incorrect: the inverted protrusion should be lighted, and the inner region should be dark, but I guess it has problems calculating the unit normal to the surface?
For the bottom plot, I invert the mold, and the shading is correct: the right side of the surface, which is facing the light source, becomes brighter. Are there any ways to make the lighting correct for the top plot with the inverted surface?