WebGLRenderer: call setTextureCube and setTexture3D on initTexture (#24245)
WebGLRenderer: call setTextureCube and setTexture3D on initTexture (#24245)

* WebGLRenderer: call setTextureCube and setTexture3D on initTexture

* Update WebGLRenderer.js

Clean up.

Co-authored-by: Michael Herzog <f6aeef0c0610dd1547ce61332ac92e282a679af1@human-interactive.org>
aardgoose/three.js,06wj/three.js,gero3/three.js,mrdoob/three.js,mrdoob/three.js,WestLangley/three.js,gero3/three.js,makc/three.js.fork,makc/three.js.fork,06wj/three.js,aardgoose/three.js,WestLangley/three.js