mapbox-gl
Version:
A WebGL interactive maps library
12 lines (9 loc) • 423 B
JavaScript
// @flow
import {createLayout} from '../util/struct_array.js';
import type {StructArrayLayout} from '../util/struct_array.js';
export const starsLayout: StructArrayLayout = createLayout([
{type: 'Float32', name: 'a_pos_3f', components: 3},
{type: 'Float32', name: 'a_uv', components: 2},
{type: 'Float32', name: 'a_size_scale', components: 1},
{type: 'Float32', name: 'a_fade_opacity', components: 1}
]);