Repository: cabbibo/glsl-curl-noise
Branch: master
Commit: 4cdfe836cb7b
Files: 3
Total size: 1.3 KB
Directory structure:
gitextract_ou03zz3r/
├── .gitignore
├── curl.glsl
└── package.json
================================================
FILE CONTENTS
================================================
================================================
FILE: .gitignore
================================================
node_modules
================================================
FILE: curl.glsl
================================================
#pragma glslify: snoise = require(glsl-noise/simplex/3d)
vec3 snoiseVec3( vec3 x ){
float s = snoise(vec3( x ));
float s1 = snoise(vec3( x.y - 19.1 , x.z + 33.4 , x.x + 47.2 ));
float s2 = snoise(vec3( x.z + 74.2 , x.x - 124.5 , x.y + 99.4 ));
vec3 c = vec3( s , s1 , s2 );
return c;
}
vec3 curlNoise( vec3 p ){
const float e = .1;
vec3 dx = vec3( e , 0.0 , 0.0 );
vec3 dy = vec3( 0.0 , e , 0.0 );
vec3 dz = vec3( 0.0 , 0.0 , e );
vec3 p_x0 = snoiseVec3( p - dx );
vec3 p_x1 = snoiseVec3( p + dx );
vec3 p_y0 = snoiseVec3( p - dy );
vec3 p_y1 = snoiseVec3( p + dy );
vec3 p_z0 = snoiseVec3( p - dz );
vec3 p_z1 = snoiseVec3( p + dz );
float x = p_y1.z - p_y0.z - p_z1.y + p_z0.y;
float y = p_z1.x - p_z0.x - p_x1.z + p_x0.z;
float z = p_x1.y - p_x0.y - p_y1.x + p_y0.x;
const float divisor = 1.0 / ( 2.0 * e );
return normalize( vec3( x , y , z ) * divisor );
}
#pragma glslify: export(curlNoise)
================================================
FILE: package.json
================================================
{
"name": "glsl-curl-noise",
"version": "0.0.3",
"description": "curl noise",
"main": "curl.glsl",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [
"curl",
"noise",
"glsl"
],
"author": "Isaac Cohen <isaaclandoncohen@gmail.com>",
"license": "BSD",
"dependencies": {
"glsl-noise": "0.0.0"
}
}
gitextract_ou03zz3r/ ├── .gitignore ├── curl.glsl └── package.json
Condensed preview — 3 files, each showing path, character count, and a content snippet. Download the .json file or copy for the full structured content (2K chars).
[
{
"path": ".gitignore",
"chars": 13,
"preview": "node_modules\n"
},
{
"path": "curl.glsl",
"chars": 957,
"preview": "#pragma glslify: snoise = require(glsl-noise/simplex/3d)\n\nvec3 snoiseVec3( vec3 x ){\n\n float s = snoise(vec3( x ));\n "
},
{
"path": "package.json",
"chars": 370,
"preview": "{\n \"name\": \"glsl-curl-noise\",\n \"version\": \"0.0.3\",\n \"description\": \"curl noise\",\n \"main\": \"curl.glsl\",\n \"scripts\": "
}
]
About this extraction
This page contains the full source code of the cabbibo/glsl-curl-noise GitHub repository, extracted and formatted as plain text for AI agents and large language models (LLMs). The extraction includes 3 files (1.3 KB), approximately 660 tokens. Use this with OpenClaw, Claude, ChatGPT, Cursor, Windsurf, or any other AI tool that accepts text input. You can copy the full output to your clipboard or download it as a .txt file.
Extracted by GitExtract — free GitHub repo to text converter for AI. Built by Nikandr Surkov.