atmosphereField
field
atmosphereField
RayTK
v0.42
Field that simulates a sun and sky.
This is primarily intended for use with the “Background Field” feature in raymarchRender3d.
Example:

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:
ContextMaterialContextCameraContextLightContextRayContextParticleContextVertexContextPixelContext - Return Types:
vec4
- Coordinate Types: