HDK
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
UT_ColorBlackbody.h
Go to the documentation of this file.
1
#ifndef _UT_BlackbodyColor_
2
#define _UT_BlackbodyColor_
3
4
#include "
UT_API.h
"
5
#include "
UT_Color.h
"
6
7
// Returns the blackbody emission color for the given temperature in Kelvin.
8
// The color corresponds to integrating the blackbody emission curve over the
9
// visible wavelengths.
10
UT_API
extern
UT_Color
UTgetBBColor
(
float
temperature);
11
12
// Modifies the given ramp to contain the blackbody spectrum ranging from 0 to
13
// maxtemp. The ramp will have N equidistant control points (with linear
14
// interpolation).
15
UT_API
extern
void
UTinitPhysicalBBRamp
(
UT_Ramp
& ramp,
float
maxtemp = 40000,
16
int
N
= 64);
17
18
#endif
19
UT_API.h
UT_API
#define UT_API
Definition:
UT_API.h:14
UT_Color
Definition:
UT_Color.h:85
UTgetBBColor
UT_API UT_Color UTgetBBColor(float temperature)
UT_Ramp
Utility class for containing a color ramp.
Definition:
UT_Ramp.h:92
GA_Names::N
GA_API const UT_StringHolder N
UTinitPhysicalBBRamp
UT_API void UTinitPhysicalBBRamp(UT_Ramp &ramp, float maxtemp=40000, int N=64)
UT_Color.h
UT
UT_ColorBlackbody.h
Generated on Tue Dec 17 2024 03:42:08 for HDK by
1.8.6