BLT-With-Graphics-Template/include/blt/gfx/stb/stb_perlin.h

1 line
123 KiB
C
Raw Normal View History

2023-12-17 15:04:57 -05:00
{"payload":{"allShortcutsEnabled":false,"fileTree":{"":{"items":[{"name":".github","path":".github","contentType":"directory"},{"name":"data","path":"data","contentType":"directory"},{"name":"deprecated","path":"deprecated","contentType":"directory"},{"name":"docs","path":"docs","contentType":"directory"},{"name":"stb_image_resize_test","path":"stb_image_resize_test","contentType":"directory"},{"name":"tests","path":"tests","contentType":"directory"},{"name":"tools","path":"tools","contentType":"directory"},{"name":".gitignore","path":".gitignore","contentType":"file"},{"name":".travis.yml","path":".travis.yml","contentType":"file"},{"name":"LICENSE","path":"LICENSE","contentType":"file"},{"name":"README.md","path":"README.md","contentType":"file"},{"name":"stb_c_lexer.h","path":"stb_c_lexer.h","contentType":"file"},{"name":"stb_connected_components.h","path":"stb_connected_components.h","contentType":"file"},{"name":"stb_divide.h","path":"stb_divide.h","contentType":"file"},{"name":"stb_ds.h","path":"stb_ds.h","contentType":"file"},{"name":"stb_dxt.h","path":"stb_dxt.h","contentType":"file"},{"name":"stb_easy_font.h","path":"stb_easy_font.h","contentType":"file"},{"name":"stb_herringbone_wang_tile.h","path":"stb_herringbone_wang_tile.h","contentType":"file"},{"name":"stb_hexwave.h","path":"stb_hexwave.h","contentType":"file"},{"name":"stb_image.h","path":"stb_image.h","contentType":"file"},{"name":"stb_image_resize2.h","path":"stb_image_resize2.h","contentType":"file"},{"name":"stb_image_write.h","path":"stb_image_write.h","contentType":"file"},{"name":"stb_include.h","path":"stb_include.h","contentType":"file"},{"name":"stb_leakcheck.h","path":"stb_leakcheck.h","contentType":"file"},{"name":"stb_perlin.h","path":"stb_perlin.h","contentType":"file"},{"name":"stb_rect_pack.h","path":"stb_rect_pack.h","contentType":"file"},{"name":"stb_sprintf.h","path":"stb_sprintf.h","contentType":"file"},{"name":"stb_textedit.h","path":"stb_textedit.h","contentType":"file"},{"name":"stb_tilemap_editor.h","path":"stb_tilemap_editor.h","contentType":"file"},{"name":"stb_truetype.h","path":"stb_truetype.h","contentType":"file"},{"name":"stb_vorbis.c","path":"stb_vorbis.c","contentType":"file"},{"name":"stb_voxel_render.h","path":"stb_voxel_render.h","contentType":"file"}],"totalCount":32}},"fileTreeProcessingTime":3.8413969999999997,"foldersToFetch":[],"reducedMotionEnabled":null,"repo":{"id":20159867,"defaultBranch":"master","name":"stb","ownerLogin":"nothings","currentUserCanPush":false,"isFork":false,"isEmpty":false,"createdAt":"2014-05-25T16:51:23.000Z","ownerAvatar":"https://avatars.githubusercontent.com/u/7525026?v=4","public":true,"private":false,"isOrgOwned":false},"symbolsExpanded":false,"treeExpanded":true,"refInfo":{"name":"master","listCacheKey":"v0:1625178638.233396","canEdit":false,"refType":"branch","currentOid":"f4a71b13373436a2866c5d68f8f80ac6f0bc1ffe"},"path":"stb_perlin.h","currentUser":null,"blob":{"rawLines":["// stb_perlin.h - v0.5 - perlin noise","// public domain single-file C implementation by Sean Barrett","//","// LICENSE","//","// See end of file.","//","//","// to create the implementation,","// #define STB_PERLIN_IMPLEMENTATION","// in *one* C/CPP file that includes this file.","//","//","// Documentation:","//","// float stb_perlin_noise3( float x,","// float y,","// float z,","// int x_wrap=0,","// int y_wrap=0,","// int z_wrap=0)","//","// This function computes a random value at the coordinate (x,y,z).","// Adjacent random values are continuous but the noise fluctuates","// its randomness with period 1, i.e. takes on wholly unrelated values","// at integer points. Specifically, this implements Ken Perlin's","// revised noise function from 2002.","//","// The \"wrap\" parameters can be used to create wraparound noise that","// wraps at powers of two. The numbers MUST be powers of two. Specify","// 0 to mean \"don't care\". (The noise always wraps every 256 due","//