Skip to content

Instantly share code, notes, and snippets.

@andanteyk
andanteyk / ibukihash.hlsl
Created December 19, 2024 10:00
IbukiHash
// IbukiHash by Andante (https://twitter.com/andanteyk)
// This work is marked with CC0 1.0. To view a copy of this license, visit https://creativecommons.org/publicdomain/zero/1.0/
float ibuki(float4 v)
{
const uint4 mult =
uint4(0xae3cc725, 0x9fe72885, 0xae36bfb5, 0x82c1fcad);
uint4 u = uint4(v);
u = u * mult;
@gam0022
gam0022 / zozuar-cloud.glsl
Last active October 24, 2021 07:07
@zozuar さんのシェーダーが凄すぎたのでコードリーディング
// @zozuar さんのシェーダーが凄すぎたのでコードリーディング
// https://twitter.com/zozuar/status/1441384708441456651
float i, // レイマーチングのループカウンター
e, // ボリュームの密度(値が小さいほど密度が濃くなる)
s, // fbmのループカウンター
g, // レイの進んだ距離(カメラのパースのためにも利用)
k = .01;// 0.01の定数
// レイマーチングのループ
// This is Twigl's "geekest mode" so the code runs inside a "main" function.
// FC.xy is fragcoord
// r.xy is resolution
// t is time (in seconds I think)
// o.rgba is output color
// This is the original code, before any readability improvements:
/*
#define X(S,D)I=ivec3(S);D=fract(float(I.x^I.y^I.z)*PI
@voluntas
voluntas / webrtc.rst
Last active December 1, 2025 17:32
WebRTC コトハジメ