Skip to content

Instantly share code, notes, and snippets.

@hb3p8
hb3p8 / tiled_voronoi.html
Created March 31, 2021 08:27
Generate normals for car paint base layer
<!DOCTYPE html>
<html>
<head>
<meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" name="viewport" />
<meta charset=utf-8>
</head>
<body>
<canvas width=2048 height=2048 style="width: 800px; height: 800px"></canvas>
</body>
<script language="javascript" src="https://npmcdn.com/regl/dist/regl.js"></script>
#include <ole2.h>
#include <ShObjIdl.h>
#include <vector>
#include <string>
class CDropTarget : public IDropTarget
{
public:
CDropTarget() {};
// Writen by ChatGPT, you may want to read it before use.
// Example usage:
// fmt_arena_reset(); // once per frame before any usage
// Clay_BeginLayout();
// ...
// CLAY_TEXT(Clay_WrapStr(fmt_fmt ("%s (%d cores)", gpuName, numCores)), textCfg);
#ifndef FORMAT_ARENA_INIT_CAP
#define FORMAT_ARENA_INIT_CAP 4096