UNPKG

@absulit/points

Version:

A Generative Art library made in WebGPU

53 lines (44 loc) 844 B
/** * non used structs unless required * <br> * <br> * These are wgsl functions, not js functions. * The function is enclosed in a js string constant, * to be appended into the code to reference it in the string shader. * @module defaultVertexStructs * @ignore */ /** * Unused structs for the future. */ const defaultVertexStructs = /*wgsl*/` struct Color{ r: f32, g: f32, b: f32, a: f32 } struct Position{ x: f32, y: f32, z: f32, w: f32 } struct Vertex { position: Position, color: Color, uv: vec2f, } struct Point { vertex0: Vertex, vertex1: Vertex, vertex2: Vertex, vertex3: Vertex, vertex4: Vertex, vertex5: Vertex, } struct Points { points: array<Point> } `; export default defaultVertexStructs;