molara.Rendering.sphere

This module contains the Sphere and Spheres classes.

Functions

calculate_sphere_model_matrix(position, radius)

Calculates the model matrix for a sphere.

generate_sphere(subdivisions)

Calculates the vertices and indices of a sphere for a given number of subdivisions.

Classes

Sphere(subdivisions)

Creates a Sphere object, containing its vertices and indices.