atmosphereField

atmosphereField

field
atmosphereField
RayTK
v0.40

Field that simulates a sun and sky.

This is primarily intended for use with the “Background Field” feature in raymarchRender3d.

Example:

glsl-atmosphere

Based on glsl-atmosphere.

Parameters

Name Description Regular Handling Read-Only Handling
Rotate Runtime Baked
Sun Position Runtime Baked
Sun Level Runtime Baked
Planet Radius Runtime Baked
Atmosphere Thickness Runtime Baked
Rayleigh Scattering Coefficient Runtime Baked
Rayleigh Scale Height Runtime Baked
Mie Scattering Coefficient Runtime Baked
Mie Scale Height Runtime Baked
Mie Preferred Scattering Direction Runtime Baked
Primary Steps Runtime Baked
Secondary Steps Runtime Baked

Inputs

  • Ray Direction Field: (optional)
    • Coordinate Types: vec3
    • Context Types: Context MaterialContext CameraContext LightContext RayContext ParticleContext VertexContext PixelContext
    • Return Types: vec4