perlin 0.2.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/CHANGELOG +4 -0
- data/ext/perlin/classic.c +2 -2
- data/lib/perlin/version.rb +1 -1
- metadata +10 -10
data/CHANGELOG
CHANGED
data/ext/perlin/classic.c
CHANGED
@@ -22,10 +22,10 @@ float perlin_smooth_noise_2d(const int x, const int y)
|
|
22
22
|
|
23
23
|
float perlin_interpolated_noise_2d(const float x, const float y)
|
24
24
|
{
|
25
|
-
const int integer_X = (
|
25
|
+
const int integer_X = floor(x);
|
26
26
|
const float fractional_X = x - integer_X;
|
27
27
|
|
28
|
-
const int integer_Y = (
|
28
|
+
const int integer_Y = floor(y);
|
29
29
|
const float fractional_Y = y - integer_Y;
|
30
30
|
|
31
31
|
const float v1 = perlin_smooth_noise_2d(integer_X, integer_Y);
|
data/lib/perlin/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: perlin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date:
|
14
|
+
date: 2015-02-25 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: RedCloth
|
@@ -181,24 +181,24 @@ files:
|
|
181
181
|
- lib/perlin/generator.rb
|
182
182
|
- lib/perlin/version.rb
|
183
183
|
- lib/perlin.rb
|
184
|
-
- ext/perlin/classic.c
|
185
|
-
- ext/perlin/generator.c
|
186
184
|
- ext/perlin/perlin.c
|
187
185
|
- ext/perlin/simplex.c
|
188
|
-
- ext/perlin/classic.
|
189
|
-
- ext/perlin/generator.
|
186
|
+
- ext/perlin/classic.c
|
187
|
+
- ext/perlin/generator.c
|
190
188
|
- ext/perlin/perlin.h
|
191
189
|
- ext/perlin/simplex.h
|
190
|
+
- ext/perlin/generator.h
|
191
|
+
- ext/perlin/classic.h
|
192
192
|
- ext/perlin/extconf.rb
|
193
|
-
- examples/chunk_in_2d.rb
|
194
193
|
- examples/chunk_in_3d.rb
|
195
194
|
- examples/gosu.rb
|
196
195
|
- examples/index_in_2d.rb
|
197
196
|
- examples/index_in_3d.rb
|
198
197
|
- examples/ogl/README.md
|
199
198
|
- examples/ogl/run.rb
|
200
|
-
-
|
199
|
+
- examples/chunk_in_2d.rb
|
201
200
|
- spec/perlin/generator_spec.rb
|
201
|
+
- spec/helper.rb
|
202
202
|
homepage: https://github.com/spooner/ruby-perlin
|
203
203
|
licenses:
|
204
204
|
- MIT
|
@@ -220,10 +220,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
220
220
|
version: '0'
|
221
221
|
requirements: []
|
222
222
|
rubyforge_project: ruby-perlin
|
223
|
-
rubygems_version: 1.8.
|
223
|
+
rubygems_version: 1.8.23.2
|
224
224
|
signing_key:
|
225
225
|
specification_version: 3
|
226
226
|
summary: Perlin Noise C extension
|
227
227
|
test_files:
|
228
|
-
- spec/helper.rb
|
229
228
|
- spec/perlin/generator_spec.rb
|
229
|
+
- spec/helper.rb
|