GINO Graphics Suite - GINO v9.0  

gSetFacetMaterialProps

Syntax

[C/C++:]
void gSetFacetMaterialProps(int face, int amb, int diff, int spec, int emit, float shine, float trans);
[F90:]
subroutine gSetFacetMaterialProps(face, amb, diff, spec, emit, shine, trans)

integer, intent(in) :: face,amb,diff,spec,emit
real, intent(in) :: shine,trans

Arguments

face
Facet face

= GFRONT, Sets material properties for front face
= GBACK, Sets material properties for back face

amb
Ambient reflection colour

diff
Diffuse reflection colour

spec
Specular reflection colour

emit
Emission colour

shine
Specular concentration (shininess) as percentage

trans
Translucence (filtering) (0.0-1.0)

Description

The routine gSetFacetMaterialProps() sets the current facet material properties for either the front or back faces of all subsequently drawn facets (or objects). This overrides any material properties set using the material table using gSetMaterialIndex().

The parameters amb, diff, spec and emit are all integer values that may be indices into the GINO colour table or 24-bit RGB true colour values as returned by the function gTrueCol(). If any of the particular properties are not required the colour black (colour index 1 - GBLACK) should be used.

Translucence values less than 1.0 (opaque) are only utilized if surface blending is switched on by the gSetShadingMode() routine.

See Also

gSetFacetMaterialProps Usage
gDrawFacet
gSetMaterialIndex
gSetShadingMode
gTrueCol