Skip to content

Instantly share code, notes, and snippets.

View veacks's full-sized avatar

Valentin Dubois veacks

  • Plan Net Pulse
  • Barcelona
View GitHub Profile
@veacks
veacks / generate-points.ts
Created December 7, 2025 23:53 — forked from donmccurdy/generate-points.ts
Generate a point cloud in glTF format, using glTF Transform.
import { Document, NodeIO, Primitive } from '@gltf-transform/core';
const document = new Document();
const buffer = document.createBuffer();
const position = document.createAccessor()
.setType('VEC3')
.setBuffer(buffer)
.setArray(new Float32Array([
0, 0, 0, // ax,ay,az
@veacks
veacks / fragment.glsl
Created January 17, 2022 11:38 — forked from bellbind/fragment.glsl
[webgl2]example for webgl2 (with glsl3)
#version 300 es
precision highp float;
//invariant gl_FragCoord;
uniform Screen {
vec2 wh;
} screen;
uniform Timer {
int count;