Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Loader.js loadTexture method looks for 'repeat' or 'mirror' strings b…
…ut Blender JSON exporter write them as 'RepeatWrapping' and 'MirrorerRepeatWrapping'. Loader code: if ( wrap[ 0 ] === 'repeat' ) texture.wrapS = RepeatWrapping; if ( wrap[ 0 ] === 'mirror' ) texture.wrapS = MirroredRepeatWrapping; if ( wrap[ 1 ] === 'repeat' ) texture.wrapT = RepeatWrapping; if ( wrap[ 1 ] === 'mirror' ) texture.wrapT = MirroredRepeatWrapping; Current blender json export output: "mapDiffuse":"window.png", "mapDiffuseWrap":["RepeatWrapping","RepeatWrapping"], //loaded texture use ClampToEdgeWrapping After fix: "mapDiffuse":"window.png", "mapDiffuseWrap":["repeat","repeat"], //loaded texture use RepeatWrapping
- Loading branch information