Sha256: d31f6db4ae38a7e719a877488156244ec5198f6fe54cc6c213c60cc910a8b457

Contents?: true

Size: 396 Bytes

Versions: 13

Compression:

Stored size: 396 Bytes

Contents

describe("Material segment 'fog'", function() {
  var matr;
  
  beforeEach(function() {
    matr = new Jax.Material();
    spyOn(matr, 'prepareShader').andCallThrough();
  });
  
  it("should compile successfully", function() {
    matr.addLayer(new Jax.Material.Fog({}));
    
    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/fog_spec.js
jax-2.0.11 spec/javascripts/shaders/fog_spec.js
jax-2.0.10 spec/javascripts/shaders/fog_spec.js
jax-2.0.9 spec/javascripts/shaders/fog_spec.js
jax-2.0.8 spec/javascripts/shaders/fog_spec.js
jax-2.0.7 spec/javascripts/shaders/fog_spec.js
jax-2.0.6 spec/javascripts/shaders/fog_spec.js
jax-2.0.5 spec/javascripts/shaders/fog_spec.js
jax-2.0.4 spec/javascripts/shaders/fog_spec.js
jax-2.0.3 spec/javascripts/shaders/fog_spec.js
jax-2.0.2 spec/javascripts/shaders/fog_spec.js
jax-2.0.1 spec/javascripts/shaders/fog_spec.js
jax-2.0.0 spec/javascripts/shaders/fog_spec.js