vgl 1.0.0
Virtual Globe Library: API reference
Loading...
Searching...
No Matches
vgl_star Struct Reference

#include <vgl/render.h>

Public Attributes

float direction [3]
 
float magnitude
 
float color [3]
 
float reserved
 

Detailed Description

A star, for the backends that draw a star field behind the sky (design document, section 7.6). The host supplies the stars, from a catalogue of its choice: vgl ships none.

Member Data Documentation

◆ direction

float vgl_star::direction[3]

Unit direction in the celestial frame of J2000: x towards the vernal equinox, z towards the north celestial pole (vgl_earth_rotation_angle_get turns it into ECEF).

◆ magnitude

float vgl_star::magnitude

Apparent visual magnitude: about -1.5 for Sirius, 6.5 for the faintest seen by eye.

◆ color

float vgl_star::color[3]

Linear RGB, 1 for the brightest channel.

◆ reserved

float vgl_star::reserved

0


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