Shader Class Reference¶
Base class for all shaders. More...
#include <ShadeDll.h>
Inheritance diagram for Shader:
Inheritance graph
[legend]
Collaboration diagram for Shader:
Collaboration graph
[legend]
| Public Member Functions | |
| Shader (HTreeObject *treeobject) | |
| virtual const char * | GetShaderDiffuseFilters ()=0 | 
| virtual const char * | GetShaderSpecularFilters ()=0 | 
| virtual void | GetDiffuse (HShading *shading)=0 | 
| virtual BOOL | GetSpecular (HShading *shading, const RGBFloat &lightcolor)=0 | 
Detailed Description¶
Base class for all shaders.
To write a shader plug-in for Animation Master you must derive a class from the Shader class provided in "ShadeDll.h". The derivation should look something like this:
class MyCoolShader : public Shader; 
Once you have declared your new class, you can begin overriding the virtual functions found in the Shader base class or in the DLLPlugin base class. You will need to override nearly every function in the base classes to have a completely functional new shader.
A shader may compute either a diffuse value, a specular value or both values.
Shaders are called for each lights in the scene. The hit point on the surface of the object is the actual world hit point. This is different from the hit point for Textures and Turbulence.
See also:
Texture and Turbulence.
Definition at line 11 of file ShadeDll.h.
Constructor & Destructor Documentation¶
| 
 | 
| 
 
 Definition at line 14 of file ShadeDll.h. | 
Member Function Documentation¶
| 
 | 
| Returns in the HShading parameter the computed diffuse value. 
 
 | 
| 
 | 
| Indicated whether the plugin will compute a diffuse value. 
  | 
| 
 | 
| Indicated whether the plugin will compute a specular value. 
 
 | 
| 
 | ||||||||||||
| Returns in the HShading parameter the computed specular value. 
 
 | 
The documentation for this class was generated from the following files:
- C:/Program Files/Hash Inc/AM120SDK/Include/ShadeDll.h
- C:/Dox/SDK/Comments/ShadeDll.dox
This A:M SDK v12.0 documentation is maintained by Hash Inc. Please address any comments concerning this documentation to AMReports. If you have any information, knowledge, or documentation to share with the A:M developer community, please post them on the Hash SDK forum.
Generated on Thu Oct 27 11:47:03 2005 with doxygen 1.4.5 written by Dimitri van Heesch, © 1997-2001