Sha256: 002ce18b376afb338af1b45b279256a26fd5ed74ac44ad791e6eb604f92120c1
Contents?: true
Size: 583 Bytes
Versions: 9
Compression:
Stored size: 583 Bytes
Contents
describe("Material segment 'normal_map'", function() { var context; var matr; beforeEach(function() { context = new Jax.Context(document.getElementById('canvas-element')); matr = new Jax.Material(); spyOn(matr, 'prepareShader').andCallThrough(); }); afterEach(function() { context.dispose(); }); it("should compile successfully", function() { matr.addLayer(new Jax.Material.NormalMap(new Jax.Texture("/images/normal_map.jpg"))); new Jax.Mesh({material:matr}).render(context); expect(matr.prepareShader).toHaveBeenCalled(); }); });
Version data entries
9 entries across 9 versions & 1 rubygems