forked from mrdoob/three.js
-
Notifications
You must be signed in to change notification settings - Fork 7
Migration Guide
chubei-oppen edited this page Apr 12, 2022
·
13 revisions
NOTE: We still do sRGB decoding in GLSL in WebGL1 context, for supporting platforms without sRGB extension.
Besides Migration Guide r136 -> r137.
-
WebGLBackgroundwill be checked against camera layers when it's set to a texture. In this case, it has all layers enabled. - Added
f90forMeshStandardMaterial. It's uniform name isf90_r115_compatabilityand not used.
NOTE: We still support HDR workflow without floating point texture extensions. You need to set RGBELoader and HDRCubeTextureLoader's data type to UnsignedByteType. PMREMGenerator still uses RGBEFormat.
Besides Migration Guide r115 -> r136:
-
Scene.bgToneMappednow defaults totrue. It used to default tofalse. -
platformnow requiresAudioContext,fetch,Request,Headers,createElementNS,requestAnimationFrame,cancelAnimationFrame. It used to requirewindow(only.AudioContext,.URLandEventTarget),document(only.createElementNSandEventTarget),XMLHttpRequest,atob. -
lowerNormalMapofMeshStandardMaterialno longer affects uv transform. -
f90ofMeshStandardMaterialis removed. -
WebGLRenderer.setClearColorandScene.backgroundnow assumes theColorpassed to them is insRGBcolor space. WhenWebGLRenderer.renderis called, the color will be converted to respect output encoding (WebGLRenderer.outputEncodingor render target texture encoding). However,WebGLRenderer.clearstill directly callsWebGLRenderingContext.clearand does not perform color space conversion. If you want to clear the framebuffer in an encoding aware way, useWebGLRenderer.clearEncodingAware.