GINO Graphics Suite - GINO v9.0  

gSetShadingMode

Syntax

[C/C++:]
void gSetShadingMode(int mode, ...);
[F90:]
subroutine gSetShadingMode(mode, gCulling, gBlending, gWinding)
integer, intent(in) :: mode
integer, optional, intent(in) :: gCulling, gBlending, gWinding

Arguments

mode
Shading mode

= GNONE, Switch shading off (default)
= GFLAT, Switch on flat shading (using facet normals)
= GGOURAUD, Switch on smooth (Gouraud) shading (using vertex normals)
= GPHONG, Switch on Phong shading (using interpolated normals)

Optional Args.

gCulling
Culling mode

= GOFF, Two sided lighting (default)
= GBACK, Ignore back (clockwise) facing polygons
= GFRONT, Ignore front (anti-clockwise) facing polygons

gBlending
Blending mode

= GOFF, Disable blending (default)
= GON, Enable blending

gWinding
Facet winding mode

= GANTICLOCKWISE, Anti-clockwise winding = front face (default)
= GCLOCKWISE, Clockwise winding = front face

Description

The routine gSetShadingMode() sets up the lighting and shading mode according to the supplied arguments.

See Also

gSetShadingMode Usage
gSetDepthMode