Module caper::mesh
[−]
[src]
Module for procedurally generated meshes
Constants
DEF_NORMAL |
The default normal to give a mesh vertex |
DEF_SEED_BASE |
The default seed base for creating a perlin mesh |
DEF_UV |
The default uv coordinate to give a mesh vertex |
Functions
gen_cube |
Generates a cube mesh |
gen_perlin_mesh |
Generates a perlin mesh from pseu_pos with each side of vert length map_size |
gen_proc_mesh |
Generate a procedural function used to calculate a vertex |
gen_quad |
Generates a quad mesh with each side length 1 |
gen_seed_perlin_mesh |
Generates a perlin mesh from pseu_pos with each side of vert length map_size using seed |
gen_sphere |
Generates a sphere mesh |
gen_sphere_segments |
Generates a sphere mesh with segments and rings specified |
get_pos_perlin |
Get a height for a pos p using perlin noise |