jax 0.0.0.2 → 0.0.0.3
Sign up to get free protection for your applications and to get access to all the features.
data/lib/jax/version.rb
CHANGED
@@ -10,6 +10,27 @@ describe("Material segment 'texture'", function() {
|
|
10
10
|
|
11
11
|
afterEach(function() { context.dispose(); });
|
12
12
|
|
13
|
+
it("should not replace options if image is POT", function() {
|
14
|
+
matr = new Jax.Material({"ambient":{"red":1.0,"green":1.0,"blue":1.0,"alpha":1.0},
|
15
|
+
"diffuse":{"red":1.0,"green":1.0,"blue":1.0,"alpha":1.0},
|
16
|
+
"specular":{"red":1.0,"green":1.0,"blue":1.0,"alpha":1.0},
|
17
|
+
"shininess":30,
|
18
|
+
"layers":[
|
19
|
+
{"type":"Lighting"},
|
20
|
+
{"type":"Texture","path":"/images/rock.png","flip_y":false,"scale_x":1.0,"scale_y":1.0,"generate_mipmap":true,"min_filter":"GL_NEAREST","mag_filter":"GL_NEAREST","mipmap_hint":"GL_DONT_CARE","format":"GL_RGBA","data_type":"GL_UNSIGNED_BYTE","wrap_s":"GL_REPEAT","wrap_t":"GL_REPEAT","premultiply_alpha":false,"colorspace_conversion":true},
|
21
|
+
{"type":"NormalMap","path":"/images/rockNormal.png","flip_y":false,"scale_x":1.0,"scale_y":1.0,"generate_mipmap":true,"min_filter":"GL_NEAREST","mag_filter":"GL_NEAREST","mipmap_hint":"GL_DONT_CARE","format":"GL_RGBA","data_type":"GL_UNSIGNED_BYTE","wrap_s":"GL_REPEAT","wrap_t":"GL_REPEAT","premultiply_alpha":false,"colorspace_conversion":true}
|
22
|
+
]
|
23
|
+
});
|
24
|
+
|
25
|
+
waitsFor(function() {
|
26
|
+
if (matr.layers[1].texture.loaded) {
|
27
|
+
expect(Jax.Util.enumName(matr.layers[1].texture.options.wrap_s)).toEqual("GL_REPEAT");
|
28
|
+
return true;
|
29
|
+
}
|
30
|
+
return false;
|
31
|
+
});
|
32
|
+
});
|
33
|
+
|
13
34
|
it("should compile successfully", function() {
|
14
35
|
matr.addLayer(new Jax.Material.Texture(new Jax.Texture("/images/rss.png")));
|
15
36
|
|
data/src/jax/webgl/texture.js
CHANGED
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: jax
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.0.0.
|
5
|
+
version: 0.0.0.3
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Colin MacKenzie IV
|
@@ -636,7 +636,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
636
636
|
requirements:
|
637
637
|
- - ">="
|
638
638
|
- !ruby/object:Gem::Version
|
639
|
-
hash:
|
639
|
+
hash: 2432223765413461543
|
640
640
|
segments:
|
641
641
|
- 0
|
642
642
|
version: "0"
|
@@ -645,7 +645,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
645
645
|
requirements:
|
646
646
|
- - ">="
|
647
647
|
- !ruby/object:Gem::Version
|
648
|
-
hash:
|
648
|
+
hash: 2432223765413461543
|
649
649
|
segments:
|
650
650
|
- 0
|
651
651
|
version: "0"
|