atmosphereField

atmosphereField

field
atmosphereField
RayTK
v0.36

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

  • Rotate:
  • Sun Position:
  • Sun Level:
  • Planet Radius:
  • Atmosphere Thickness:
  • Rayleigh Scattering Coefficient:
  • Rayleigh Scale Height:
  • Mie Scattering Coefficient:
  • Mie Scale Height:
  • Mie Preferred Scattering Direction:
  • Primary Steps:
  • Secondary Steps:

Inputs

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