Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

DoSurfaceShade(3D)  —  Kubota Pacfic 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>
Shades objects with their diffuse colors. This is slightly faster than DcShaderLightSource in some cases, and provides a simple “draw” mode as found in packages like GKS and PHIGS. 

DcShaderLightSource <DCSHLS>
Shades objects using light sources.

DEFAULTS

By default, DoSurfaceShade is set to DcShaderLightSource <DCSHLS>. 

March 13, 1992

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026