HDK
 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 
#define UT_API
Definition: UT_API.h:14
UT_API UT_Color UTgetBBColor(float temperature)
Utility class for containing a color ramp.
Definition: UT_Ramp.h:92
GA_API const UT_StringHolder N
UT_API void UTinitPhysicalBBRamp(UT_Ramp &ramp, float maxtemp=40000, int N=64)