MXVK Vulkan Framework 0.24.0
C++20 Vulkan rendering framework for practical 2D and 3D application development with SDL3.
Loading...
Searching...
No Matches
space::Star Struct Reference

Runtime state for one animated background star. More...

#include <examples/asteroids-net/asteroids3d_types.hpp>

Public Attributes

glm::vec4 base_color {1.0f}
 Color before brightness modulation.
float brightness = 1.0f
 Base brightness multiplier.
glm::vec4 color {1.0f}
 Current rendered color.
int layer = 0
 Parallax layer index.
glm::vec3 position {0.0f}
 World-space position.
float size = 1.0f
 Rendered point size.
float twinkle_phase = 0.0f
 Twinkle animation phase.
float twinkle_speed = 1.0f
 Twinkle animation rate.
glm::vec3 velocity {0.0f}
 World-space velocity.

Detailed Description

Runtime state for one animated background star.

Definition at line 307 of file asteroids3d_types.hpp.

Member Data Documentation

◆ base_color

glm::vec4 Star::base_color {1.0f}

Color before brightness modulation.

Definition at line 310 of file asteroids3d_types.hpp.

310{1.0f}; ///< Color before brightness modulation.

◆ brightness

float Star::brightness = 1.0f

Base brightness multiplier.

Definition at line 313 of file asteroids3d_types.hpp.

◆ color

glm::vec4 Star::color {1.0f}

Current rendered color.

Definition at line 311 of file asteroids3d_types.hpp.

311{1.0f}; ///< Current rendered color.

◆ layer

int Star::layer = 0

Parallax layer index.

Definition at line 316 of file asteroids3d_types.hpp.

◆ position

glm::vec3 Star::position {0.0f}

World-space position.

Definition at line 308 of file asteroids3d_types.hpp.

308{0.0f}; ///< World-space position.

◆ size

float Star::size = 1.0f

Rendered point size.

Definition at line 312 of file asteroids3d_types.hpp.

◆ twinkle_phase

float Star::twinkle_phase = 0.0f

Twinkle animation phase.

Definition at line 314 of file asteroids3d_types.hpp.

◆ twinkle_speed

float Star::twinkle_speed = 1.0f

Twinkle animation rate.

Definition at line 315 of file asteroids3d_types.hpp.

◆ velocity

glm::vec3 Star::velocity {0.0f}

World-space velocity.

Definition at line 309 of file asteroids3d_types.hpp.

309{0.0f}; ///< World-space velocity.

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