#include <RenderTypes.h>
◆ Spectrum()
Spectrum |
( |
const std::string & |
name = "" | ) |
|
|
inline |
◆ addAlphaCtrl()
virtual void addAlphaCtrl |
( |
vec3 |
v | ) |
|
|
inlinevirtual |
◆ addSpectrumValue()
virtual void addSpectrumValue |
( |
real |
pos, |
|
|
color |
value |
|
) |
| |
|
inlinevirtual |
Add a color value to the spectrum at the given position then resort the spectrum.
◆ clearSpectrum()
virtual void clearSpectrum |
( |
| ) |
|
|
inlinevirtual |
◆ copySpectrumFrom()
virtual void copySpectrumFrom |
( |
const Spectrum * |
s | ) |
|
|
inlinevirtual |
◆ fillColorMatrix()
Interpolate the colors from the material's spectrum into `col' using the unit values in the first column of `mat'. If `mat' has two columns, multiply the resulting color's alpha channel by the second column value.
◆ getAlpha()
virtual real getAlpha |
( |
| ) |
const |
|
inlinevirtual |
◆ getAlphaCtrl()
◆ getDefaultColor()
virtual color getDefaultColor |
( |
| ) |
const |
|
inlinevirtual |
◆ getName()
virtual const char* getName |
( |
| ) |
const |
|
inlinevirtual |
◆ getSpectrumIndex()
Get the index of the spectrum value with the given position and color, returns numSpectrumValues() if not found.
◆ getSpectrumPos()
Get the position of the spectrum value at the given index in the list.
◆ getSpectrumValue()
Get the color of the spectrum value at the given index in the list.
◆ interpolateColor()
virtual color interpolateColor |
( |
real |
pos | ) |
const |
|
inlinevirtual |
Interpolate a color with the spectrum at the given position. If `pos' is less than or equal to the position of the first spectrum value, that color is returned, if greater than or equal that of the last spectrum value, that color is returned. If neither is true, there exists two values cmin and cmax such that the position of cmin is less than `pos' and that of cmax is greater. This method will then use the distance `pos' is from these other positions to interpolate between cmin and cmax.
◆ isLinearAlpha()
virtual bool isLinearAlpha |
( |
| ) |
const |
|
inlinevirtual |
◆ numAlphaCtrls()
virtual sval numAlphaCtrls |
( |
| ) |
const |
|
inlinevirtual |
◆ numSpectrumValues()
virtual sval numSpectrumValues |
( |
| ) |
const |
|
inlinevirtual |
Get the number of spectrum values.
◆ removeAlphaCtrl()
◆ removeSpectrumValue()
Remove the spectrum value at the given index.
◆ setAlphaCtrl()
◆ setAlphaCurve()
virtual void setAlphaCurve |
( |
const Vec3Matrix * |
pts | ) |
|
|
inlinevirtual |
◆ setLinearAlpha()
virtual void setLinearAlpha |
( |
bool |
b | ) |
|
|
inlinevirtual |
◆ setSpectrumValue()
Set the spectrum value at the given list index.
◆ updateSpectrum()
virtual void updateSpectrum |
( |
| ) |
|
|
inlinevirtual |
◆ alphacurve
◆ name
◆ spec
The documentation for this class was generated from the following file: