Sha256: fb369f075c932267134ca596e87430ffa54e1bd3da7ac1807419cbb7a1e70c96

Contents?: true

Size: 370 Bytes

Versions: 13

Compression:

Stored size: 370 Bytes

Contents

Jax.Material.NormalMap = Jax.Class.create(Jax.Material, {
  initialize: function($super, map) {
    this.map = Jax.Material.Texture.normalizeTexture(map);
    $super({shader:"normal_map"});
  },
  
  setVariables: function(context, mesh, options, vars) {
    vars.texture('NormalMap', this.map, context);
    vars.set('VERTEX_TANGENT', mesh.getTangentBuffer());
  }
});

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
jax-2.0.12 lib/assets/javascripts/shaders/normal_map/material.js
jax-2.0.11 lib/assets/javascripts/shaders/normal_map/material.js
jax-2.0.10 lib/assets/javascripts/shaders/normal_map/material.js
jax-2.0.9 lib/assets/javascripts/shaders/normal_map/material.js
jax-2.0.8 lib/assets/javascripts/shaders/normal_map/material.js
jax-2.0.7 lib/assets/javascripts/shaders/normal_map/material.js
jax-2.0.6 lib/assets/javascripts/shaders/normal_map/material.js
jax-2.0.5 lib/assets/javascripts/shaders/normal_map/material.js
jax-2.0.4 lib/assets/javascripts/shaders/normal_map/material.js
jax-2.0.3 lib/assets/javascripts/shaders/normal_map/material.js
jax-2.0.2 lib/assets/javascripts/shaders/normal_map/material.js
jax-2.0.1 lib/assets/javascripts/shaders/normal_map/material.js
jax-2.0.0 lib/assets/javascripts/shaders/normal_map/material.js