Skip to content

Instantly share code, notes, and snippets.

View huhlig's full-sized avatar

Hans W. Uhlig huhlig

View GitHub Profile
@huhlig
huhlig / wgsl_noise.md
Created April 16, 2022 03:58 — forked from munrocket/wgsl_noise.md
WGSL Noise Algorithms

WGSL Noise Algorithms

Operator % has changed, probably current code need a fix

Value noise

fn rand(n: f32) -> f32 { return fract(sin(n) * 43758.5453123); }
fn noise(p: f32) -> f32 {
  let fl = floor(p);
@huhlig
huhlig / T0.md
Created February 25, 2016 14:26 — forked from graphitemaster/T0.md
Vulkan Tutorial

Tutorial 0

What is Vulkan

Vulkan is a low-overhead, cross-platform 3D graphics and compute API.

Vulkan targets

Vulkan targets high-performance realtime 3D graphics applications such as games and interactive media across multiple platforms providing higher performance and lower CPU usage.