Skip to content

Commit

Permalink
Revert texture-filter hack
Browse files Browse the repository at this point in the history
  • Loading branch information
emilwidlund authored Apr 16, 2018
1 parent c4f5698 commit abfad2e
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions form/loaders/OBJ.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,12 @@ class exports.OBJ

@materialLoader = new THREE.MTLLoader
@modelLoader = new THREE.OBJLoader

@materialLoader.setTexturePath @dirPath

@materialLoader.setPath @dirPath
@materialLoader.crossOrigin = ''
@materialLoader.load @materialPath, (materials) =>
materials.preload()

for m in materials.materials
m.map.magFilter = THREE.NearestFilter
m.map.minFilter = THREE.LinearFilter

@modelLoader.setMaterials materials
@modelLoader.setPath @dirPath
@modelLoader.load @modelPath, (model) =>
cb model
cb model

0 comments on commit abfad2e

Please sign in to comment.