Log inGet started
Package

color.shaderModule

Newest version

This package holds more than this page lists. See all of its files in its world.

README.md

color

Colour helpers a per-element template calls: zero_color_srgb_to_linear, zero_color_linear_to_srgb, zero_color_luminance, zero_color_hsv_to_rgb, zero_color_rgb_to_hsv, zero_color_blackbody(kelvin) (linear RGB of a blackbody) and zero_ramp_ease(f), the smooth ease a ramp blends keys with.

#include "@builtin::systems.procgen.kernels.color"

fn ember(heat: f32) -> vec3<f32> { return zero_color_blackbody(1000.0 + 2500.0 * heat); }