render.make_gradient_sky
render.make_gradient_sky(
sky_color=(0.2, 0.48, 0.9),
horizon_color=(0.85, 0.72, 0.52),
ground_color=(0.18, 0.16, 0.14),
resolution=(256, 512),
)
Create a simple procedural gradient sky as a (H, W, 3) env-map array.
The latitude axis is split into ground (y < 0) and sky (y ≥ 0), with a smooth cosine blend in between. Suitable as a drop-in replacement for a real HDR file.
Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| sky_color | Array | list | RGB color at the zenith (top of the sky). | (0.2, 0.48, 0.9) |
| horizon_color | Array | list | RGB color at the horizon. | (0.85, 0.72, 0.52) |
| ground_color | Array | list | RGB color below the horizon. | (0.18, 0.16, 0.14) |
| resolution | tuple[int, int] | (H, W) of the generated map. | (256, 512) |
Returns
| Name | Type | Description |
|---|---|---|
| Array | Float32 JAX array of shape (H, W, 3) with values in [0, 1]. |