$darkmode
Suckless OGL 1.0.0
A lean, high-performance C11 PBR Renderer
NBodyParticle Struct Reference

A single gravitational body. More...

#include <nbody.h>

Data Fields

double position [3]
 
double mass
 
double velocity [3]
 
float radius
 
vec3 albedo
 
float metallic
 
float roughness
 
double prev_position [3]
 

Detailed Description

A single gravitational body.

Field Documentation

◆ albedo

vec3 NBodyParticle::albedo

PBR base color for this body.

◆ mass

double NBodyParticle::mass

Gravitational mass.

◆ metallic

float NBodyParticle::metallic

PBR metallic factor.

◆ position

double NBodyParticle::position[3]

World position.

◆ prev_position

double NBodyParticle::prev_position[3]

Position from previous frame (motion blur).

◆ radius

float NBodyParticle::radius

Visual sphere radius (for rendering scale).

◆ roughness

float NBodyParticle::roughness

PBR roughness factor.

◆ velocity

double NBodyParticle::velocity[3]

Current velocity.


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