Discover Learn Reference Get OpenPLX Search Contact

Visuals/Materials/SurfaceFeatures

BaseColor

trait BaseColor:
    .doc: """
Defines the base color used in the lighting calculations. For any given point, the
color at that point should be interpreted as the color of base_color_map at that point
multiplied by the base_color_tint value.
"""
    base_color_tint is Visuals.Properties.Color: Visuals.Properties.Color.from_rgb(1,1,1)
    base_color_map is Visuals.Textures.DefaultTexture

    # Propagate outer values to the physical visible light spectrum band
    visible becomes Visuals.Optics.VisibleBand with Visuals.Optics.SurfaceFeatures.BaseColor:
        base_color_tint: base_color_tint
        base_color_map: base_color_map


OpenPLX is a work in progress. This draft version will evolve with user feedback and experience. We welcome your input and collaboration.
X