Hi,
I was trying to add envMapping and I got this error:
THREE.WebGLProgram: shader error: 0 35715 false gl.getProgramInfoLog Fragment shader is not compiled.
RGBELoader = new THREE.RGBELoader()
// .setPath( 'textures/equirectangular/' )
.load(
"./assets/resources/light.hdr",
function (hdrmap) {
envmap = envmaploader.fromCubemap(hdrmap);
texture = new THREE.CanvasTexture(new FlakesTexture());
texture.wrapS = THREE.RepeatWrapping;
texture.wrapT = THREE.RepeatWrapping;
texture.repeat.x = 10;
texture.repeat.y = 6;
model.traverse(child=>{
if(child.isMesh){
child.material.normalMap = texture
child.material.envMap = envmap.texture
}
})
}
I have tried both RGBELoader and EXRLoader. I don’t know what the problem is. it’ll be great if anyone can help
Thanks,
Binoy