GINO Graphics Suite - GINO v9.0  

gEnqShadingMode

Syntax

[C/C++:]
void gEnqShadingMode(GSHADING *att);
[F90:]
subroutine gEnqShadingMode(att)
type (GSHADING), intent(out) :: att

Arguments

att.mode
Shading mode

= GNONE, No shading (default)
= GFLAT, Flat shading (using facet normals)
= GGOURAUD, Smooth (Gouraud) shading (using vertex normals)
= GPHONG, Phong shading (using interpolated normals)

att.culling
Culling mode

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

att.blending
Blending mode

= GOFF, Blending disabled (default)
= GON, Blending enabled

att.winding
Facet winding mode

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

Description

The routine gEnqShadingMode() returns the current lighting and shading settings that affect the display of 3D shaded objects.

See Also

gEnqShadingMode Usage
gSetDepthMode
gSetShadingMode