DrawSmoothShadedShape
From Solid Graphics Wiki
| ||||||||||||
The DrawSmoothShadedShape function draws a shape using smooth shading. The smooth shading is suitable for shapes which do not have visible sharp edges.
The function uses OpenGL functions for drawing the shape, so the shape is drawn into active/current OpenGL rendering context window.
void DrawSmoothShadedShape
(
const Shape & shape,
const VectorList & normals
);
Parameters
| shape | The shape to render. |
| normals | Shape points normal vectors. The vectors can be calculated using the Shape::CalculateNormals method. Number of normal vectors in the list must be the same as number of points in the shape. |
See Also
