Sha256: ea08dbc0b0423cfb6a71f89d4dda30f318d837227911afdcf45636b91720a183

Contents?: true

Size: 404 Bytes

Versions: 13

Compression:

Stored size: 404 Bytes

Contents

describe("Material segment 'lighting'", function() {
  var matr;
  
  beforeEach(function() {
    matr = new Jax.Material();
    spyOn(matr, 'prepareShader').andCallThrough();
  });
  
  it("should compile successfully", function() {
    matr.addLayer(new Jax.Material.Lighting());
    
    new Jax.Mesh({material:matr}).render(SPEC_CONTEXT);
    expect(matr.prepareShader).toHaveBeenCalled();
  });
});

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
jax-2.0.12 spec/javascripts/shaders/lighting_spec.js
jax-2.0.11 spec/javascripts/shaders/lighting_spec.js
jax-2.0.10 spec/javascripts/shaders/lighting_spec.js
jax-2.0.9 spec/javascripts/shaders/lighting_spec.js
jax-2.0.8 spec/javascripts/shaders/lighting_spec.js
jax-2.0.7 spec/javascripts/shaders/lighting_spec.js
jax-2.0.6 spec/javascripts/shaders/lighting_spec.js
jax-2.0.5 spec/javascripts/shaders/lighting_spec.js
jax-2.0.4 spec/javascripts/shaders/lighting_spec.js
jax-2.0.3 spec/javascripts/shaders/lighting_spec.js
jax-2.0.2 spec/javascripts/shaders/lighting_spec.js
jax-2.0.1 spec/javascripts/shaders/lighting_spec.js
jax-2.0.0 spec/javascripts/shaders/lighting_spec.js