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