Shading

The shader computes the effects of illumination upon visible (front facing) surfaces. When a graphic is rendered, the adopted shaders are combined with the TSceneBundle information (light, atmosphere, and camera) to compute the final appearance of the inside and outside surface colors for drawing. The TGrafBundle3D functions for shaders are shown in Figure 193.


      virtual void AdoptInsideShader( TShader* insideShader );
      virtual void AdoptOutsideShader( TShader* outsideShader );

[Contents] [Previous] [Next]
Click the icon to mail questions or corrections about this material to Taligent personnel.
Copyright©1995 Taligent,Inc. All rights reserved.

Generated with WebMaker