RMGui 0.15.0
C11 retained-mode UI library: layout kernel, style schema, widget painters, fonts, software framebuffer
Loading...
Searching...
No Matches
rmgui_gpu_cloud_orb_params_t Struct Reference

Exactly eight contiguous, 16-byte-aligned vec4 uniforms (128 bytes). More...

#include <gpu_cloud_orb.h>

Public Member Functions

 _Alignas (16) float camera_origin[4]

Data Fields

float camera_right [4]
float camera_up [4]
float camera_forward [4]
float light_dir [4]
float dark_color [4]
float light_color [4]
float motion [4]

Detailed Description

Exactly eight contiguous, 16-byte-aligned vec4 uniforms (128 bytes).

Coordinates are model-local; the sphere is centered at zero. Camera axes must be orthonormal; forward points into the scene. All values must be finite. camera_origin.xyz = eye, w unused. camera_right.xyz = right, w = tan(fovY/2)*aspect. camera_up.xyz = up, w = tan(fovY/2). camera_forward.xyz = forward, w = radius > 0. Radius must be a normal float (>= FLT_MIN), and is used without enlargement. eye/radius and its squared length, and radius times nonnegative haze/cloud extinction, must fit in finite float arithmetic; otherwise draw returns E_ARGS. light_dir.xyz = unit vector TOWARD light, w = strength. dark_color.rgb / light_color.rgb = LINEAR RGB; w = haze / cloud extinction in inverse model-local distance. motion = phase radians, activity [0,1], detail scale (shader clamps 1..12), ray steps (shader clamps 16..64).

Member Function Documentation

◆ _Alignas()

rmgui_gpu_cloud_orb_params_t::_Alignas ( 16 )

Field Documentation

◆ camera_right

float rmgui_gpu_cloud_orb_params_t::camera_right[4]

◆ camera_up

float rmgui_gpu_cloud_orb_params_t::camera_up[4]

◆ camera_forward

float rmgui_gpu_cloud_orb_params_t::camera_forward[4]

◆ light_dir

float rmgui_gpu_cloud_orb_params_t::light_dir[4]

◆ dark_color

float rmgui_gpu_cloud_orb_params_t::dark_color[4]

◆ light_color

float rmgui_gpu_cloud_orb_params_t::light_color[4]

◆ motion

float rmgui_gpu_cloud_orb_params_t::motion[4]

The documentation for this struct was generated from the following file: