Skip to content

Instantly share code, notes, and snippets.

@bolducke
bolducke / bufferA.glsl
Created February 14, 2026 03:30
Uniform Sampling of Surfaces
#define SELF iChannel0
void mainImage(out vec4 fragColor, in vec2 fragCoord)
{
if (iFrame < 3) {
ivec2 seed = ivec2(fragCoord.xy);
vec3 ro_sample;
vec3 rd_sample;
random_sample_ray(seed, ro_sample, rd_sample);
@bolducke
bolducke / interpolate_rbf.py
Last active May 6, 2024 06:56
Flexible JAX Implementation of Radial Basis Function (RBF) Interpolation with Support for Standard Scipy Kernels
'''
Interpolation using Radial Basis Functions
Author: Karl-Étienne Bolduc
Date: 2024-05-06
License: MIT
'''
import jax
import jax.numpy as jnp
@bolducke
bolducke / CMakeLists.txt
Last active January 18, 2024 05:52
Modern CMake (3.11+) Example with Imgui+Glad+SDL2
# Directory Structure
#######
# build/
# ...
# extern/
# glad/
# ...
# imgui/
# ...
# src/
@bolducke
bolducke / index.js
Created October 6, 2020 20:36 — forked from AlexeyAndKartashov/index.js
vue-magnific. Magnific-popup wrapper for Vue.js
const _ = require('lodash');
const $ = require('jquery');
const Vue = require('vue');
require('jquery.magnific-popup');
module.exports = Vue.extend({
template: require('./tpl.html'),
props: {
show: {
type: Boolean,