I’m trying to pass reflection probe cubeTexture to shaderMaterial as uniform by using
engine.runRenderLoop(function(){
material.setTexture(“reflectionSampler”,reflectionProbe.cubeTexture);
scene.render();
}
but passing cubeTexture as texture to shader causes error (no using, just passing) I want to pass it to shader. How can I do that?