Commit graph

23 commits

Author SHA1 Message Date
1310dae884
Refactor: Split up terrain.lua, make subtable wea.terrain
This is just the start, if my plans work out.

The eventual aim here is to implement a generic Heightmap2D class, just 
like Vector3.

This will make interacting with heightmaps much easier.
2021-12-31 02:42:32 +00:00
b131970f16
fixup 2021-08-07 22:30:38 +01:00
6f00394d3d
Noise: add perlinmt algorithm & set as default 2021-08-07 22:30:10 +01:00
54d0f5a3a3
run2d: Fix accidental redefining global variable 2021-07-30 19:48:10 +01:00
51e1e7dcbd
noise.params_apply_default: Fix shadowing variable 2021-07-30 19:47:21 +01:00
e4d3f26692
perlin: use wea.bit.band 2021-07-17 21:34:50 +01:00
e85b91d074
//noise2d infrared: remove debug print 2021-07-13 00:56:26 +01:00
03038689e2
Add infrared noise 2021-07-13 00:54:52 +01:00
0dee65ca1d
//noise2d: add red noise 2021-07-13 00:15:23 +01:00
7db2207aea
noise2d/make_2d: add todo 2021-07-12 02:46:47 +01:00
46c2a02ade
//noise2d: add white algorithm; fix nasty bug in apply_2d 2021-07-12 02:45:32 +01:00
a42e296f4e
Reference: Document //noise2d 2021-07-06 01:08:36 +01:00
8a14d35c04
noise2d: add comment 2021-07-04 16:14:48 +01:00
0b0595a1d3
Remove a whole bunch of stray debug print statements 2021-07-04 14:35:02 +01:00
1d82013d86
//noise2d: add sin; sort out apply_mode as number 2021-07-04 13:21:13 +01:00
49bf0f19bc
Perlin: remove debug functions 2021-07-04 12:03:29 +01:00
b2eb76d280
//noise2d works!
...just.

Next up more engines and documentation
2021-07-03 22:53:16 +01:00
ee2e5716eb
Implement more of the noise command backend
It's still not hooked up yet though, and there's no command parsing 
logic either
2021-07-03 01:44:36 +01:00
db7b20d485
Refactor table functions into subtable of wea
Also, you can return a value from dofile()!!!!

This changes everything.
2021-06-28 00:56:29 +01:00
9cb746e86a
noise: add comment 2021-05-31 00:38:07 +01:00
a1911037d2
Fill out noise.make_2d, but it's untested
Next, we need to do the make_3d version, followed by the plumbing to 
worldeditadditions.noise(), followed by the chat command

....there's a lot to do.
2021-03-16 21:39:12 +00:00
d20764cffd
Add pure Lua perlin implementation, but it's untested. 2021-03-13 00:37:26 +00:00
108c280843
Start laying out stuff for our noise experiment, but it isn't hooked up yet and isn't finished. 2021-03-01 21:26:33 +00:00