7 #ifndef __surface_Sphere_h__ 8 #define __surface_Sphere_h__ 10 FE_ATTRIBUTE(
"surf:emissive",
"");
11 FE_ATTRIBUTE(
"surf:ambient",
"");
12 FE_ATTRIBUTE(
"surf:diffuse",
"");
13 FE_ATTRIBUTE(
"surf:specular",
"");
14 FE_ATTRIBUTE(
"surf:shininess",
"");
35 Material(
void) { setName(
"Material"); }
38 add(emissive, FE_USE(
"surf:emissive"));
39 add(ambient, FE_USE(
"surf:ambient"));
40 add(diffuse, FE_USE(
"surf:diffuse"));
41 add(specular, FE_USE(
"surf:specular"));
42 add(shininess, FE_USE(
"surf:shininess"));
48 set(diffuse(),1.0f,1.0f,1.0f,1.0f);
54 if(diffuse()[3]==Real(0) &&
55 magnitudeSquared(diffuse())>Real(0))
virtual void initializeRecord(void)
Called at instantiation to initialize attributes.
Definition: Material.h:44
kernel
Definition: namespace.dox:3
Bound accessor in a RecordView.
Definition: RecordView.h:147
Material RecordView.
Definition: Material.h:26
virtual void finalizeRecord(void)
Called right after instantiation to finalize complex attributes.
Definition: Material.h:52
Bindable collection of accessor Functors.
Definition: RecordView.h:106
virtual void addFunctors(void)
Called at instantiation to add functors.
Definition: Material.h:36