DoSurfaceShade(3D) — Stardent Computer Inc. (\*(Dd)
NAME
DoSurfaceShade − Create a surface shading primitive attribute object
SYNOPSIS
C:
DtObject DoSurfaceShade(object)
DtObject object;
Fortran:
INTEGER∗4 DOSRFS(OBJ)
INTEGER∗4 OBJ
DESCRIPTION
DoSurfaceShade allows the shading model to be selected on an object-by-object basis. The call takes a single parameter, which is the object handle of the shader which you wish to apply to subsequent primitive objects.
The two shaders provided for DcRealTime <DCRLTM> rendering are DcShaderConstant <DCSHCN>, which merely shades objects with their diffuse colors, and DcShaderLightSource <DCSHLS>, which shades using light sources. The DcShaderConstant <DCSHCN> shader is slightly faster in some cases, and provides a simple “draw” mode as found in packages like GKS and PHIGS .
September 29, 2021