Skip to content

MaterialGradient

MaterialGradient#

(Gradient)

Go to User page.

Description#

A material that defines a color gradient. This material is usually assigned to an environment sphere.

Public Attributes#

Type Name Visual Hint Description
double[3] zenith_color VISUAL_HINT_COLOR Set the color at the zenith.
double[3] sky_color VISUAL_HINT_COLOR Set the color of the sky.
double[3] ground_color VISUAL_HINT_COLOR Set the color of the ground.
double[3] nadir_color VISUAL_HINT_COLOR Set the color at the nadir.

Inherited Public Attributes#

Type Name Visual Hint Description
bool export_aovs VISUAL_HINT_DEFAULT Compute and write Aovs defined in the shading graph
reference (AovStore) arbitrary_output_variables VISUAL_HINT_DEFAULT Set the list of extra channels to write to the image.

CID#

class "MaterialGradient" "Material" {
    #version 0.9
    icon "../icons/object_icons/material_gradient.iconrc"
    doc "A material that defines a color gradient. This material is usually assigned to an environment sphere."
    attribute_group "gradient" {
        color "zenith_color" {
            doc "Set the color at the zenith."
            texturable yes
            animatable yes
            value 0.0 0.16 0.31
        }
        color "sky_color" {
            doc "Set the color of the sky."
            texturable yes
            animatable yes
            value 0.47 0.71 0.94
        }
        color "ground_color" {
            doc "Set the color of the ground."
            texturable yes
            animatable yes
            value 0.04 0.032 0.024
        }
        color "nadir_color" {
            doc "Set the color at the nadir."
            texturable yes
            animatable yes
            value 0.078 0.062 0.048
        }
    }
}