Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Andrew Bauer
VTK
Commits
8ef85f1b
Commit
8ef85f1b
authored
Apr 20, 1995
by
Ken Martin
Browse files
added advanced lighting proprs
parent
ba6f916e
Changes
1
Hide whitespace changes
Inline
Side-by-side
include/Light.hh
View file @
8ef85f1b
...
...
@@ -65,13 +65,37 @@ public:
vlGetMacro
(
Switch
,
int
);
vlBooleanMacro
(
Switch
,
int
);
// Description:
// Turn positional lighting on/off.
vlSetMacro
(
Positional
,
int
);
vlGetMacro
(
Positional
,
int
);
vlBooleanMacro
(
Positional
,
int
);
// Description:
// Set the exponent of the cosine used in positional lighting.
vlSetMacro
(
Exponent
,
float
);
vlGetMacro
(
Exponent
,
float
);
// Description:
// Set the lighting cone angle in degrees of a positional light.
vlSetMacro
(
ConeAngle
,
float
);
vlGetMacro
(
ConeAngle
,
float
);
// Description:
// Set the quadratic attenuation constants, const linear quad in order.
vlSetVector3Macro
(
AttenuationValues
,
float
);
vlGetVectorMacro
(
AttenuationValues
,
float
,
3
);
protected:
float
FocalPoint
[
3
];
float
Position
[
3
];
float
Intensity
;
float
Color
[
3
];
int
Switch
;
int
Positional
;
float
Exponent
;
float
ConeAngle
;
float
AttenuationValues
[
3
];
};
#endif
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment