-
-
Notifications
You must be signed in to change notification settings - Fork 36.1k
Closed
Description
Describe the bug
Console three.module.js?5a89:16731 THREE.WebGLProgram: Unsupported encoding: undefined
Code
const TextureLod = new THREE.TextureLoader()
const mapImage = TextureLod.load('static/demo4/textures/001.jpg')
mapImage.wrapS = mapImage.wrapT = THREE.RepeatWrapping
mapImage.encoding = THREE.sRGBEncoding
const material2 = new Nodes.MeshStandardNodeMaterial()
material2.roughness = new Nodes.FloatNode(0.8)
material2.metalness = new Nodes.FloatNode(0)
const map = new Nodes.TextureNode(mapImage)
map.uv = new Nodes.UVTransformNode()
map.uv.setUvTransform(0, 0, 6, 6, 0)
material2.map = map
material2.normalMap = TextureLod.load('static/demo4/textures/normal2.png')Platform:
- OS: [Windows, MacOS, Linux, Android, iOS]
- Browser: [Chrome, Firefox, Safari, Edge]
Metadata
Metadata
Assignees
Labels
No labels