Skip to content

TextureBlackBody

TextureBlackBody#

(Black Body)

Go to User page.

Description#

Black-body emittance according to Planck's radiation law for a given temperature. Allows for some artistic (non-physical) modifications.

Public Attributes#

Type Name Visual Hint Description
double temperature VISUAL_HINT_DEFAULT Temperature that defines the emittance. Texture replaces value, it does not multiply!
double temperature_scale VISUAL_HINT_SCALE Scalar to easily adjust the scale of the input temperature range.
double temperature_offset VISUAL_HINT_DEFAULT Offset to easily adjust the range of the input temperature.
double energy_compression VISUAL_HINT_PERCENTAGE Non-linear compression to adjust the temperature-dependent energy that is emitted. Allows to modify the relative brightness of different temperatures to each other. Use zero for physical behavior. Use one for normalized black-body emittance (constant energy, pure color gradient).
double saturation_factor VISUAL_HINT_DEFAULT Change the saturation of the resulting color.
double gain VISUAL_HINT_DEFAULT Scales the output for easier usage.

Inherited Public Attributes#

Type Name Visual Hint Description
bool pass_through VISUAL_HINT_DEFAULT If checked, the current texture is not evaluated and the value of the attribute selected in Pass Through Attribute is directly forwarded.
string master_input VISUAL_HINT_TAG Name of the attribute that will be used as output if Pass Through is enabled.
bool invert VISUAL_HINT_DEFAULT If checked, the texture is inverted.
double opacity VISUAL_HINT_PERCENTAGE Set the opacity of the texture.

CID#

class "TextureBlackBody" "Texture" {
    #version 1
    icon "../icons/object_icons/texture_blackbody.iconrc"
    category "Texture/Utility"
    doc "Black-body emittance according to Planck\'s radiation law for a given temperature. Allows for some artistic (non-physical) modifications."
    attribute_group "input" {
        double "temperature" {
            doc "Temperature that defines the emittance. Texture replaces value, it does not multiply!"
            texturable yes
            animatable yes
            slider yes
            numeric_range yes 0.0 20000
            ui_range yes 798 12000
            value 5500
        }
        scale "temperature_scale" {
            doc "Scalar to easily adjust the scale of the input temperature range."
            texturable yes
            animatable yes
            slider yes
            numeric_range yes 0.0 20000
            ui_range yes 0.0 10
            value 1
        }
        double "temperature_offset" {
            doc "Offset to easily adjust the range of the input temperature."
            texturable yes
            animatable yes
            slider yes
            numeric_range yes -20000 20000
            ui_range yes 0.0 20000
            value 0.0
        }
        percentage "energy_compression" {
            doc "Non-linear compression to adjust the temperature-dependent energy that is emitted. Allows to modify the relative brightness of different temperatures to each other. Use zero for physical behavior. Use one for normalized black-body emittance (constant energy, pure color gradient)."
            texturable yes
            animatable yes
            slider yes
            numeric_range yes 0.0 1
            ui_range yes 0.0 1
            value 0.8
        }
        double "saturation_factor" {
            doc "Change the saturation of the resulting color."
            texturable yes
            animatable yes
            slider yes
            numeric_range yes 0.0 10
            ui_range yes 0.0 2
            value 1
        }
        double "gain" {
            doc "Scales the output for easier usage."
            texturable yes
            animatable yes
            slider yes
            numeric_range yes 0.0 100000
            ui_range yes 0.0 1
            value 1
        }
    }
}