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.
-
WebGLBackground
will be checked against camera layers when it's set to a texture. In this case, it has all layers enabled. - Added
f90
forMeshStandardMaterial
. It's uniform name isf90_r115_compatability
and 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.bgToneMapped
now defaults totrue
. It used to default tofalse
. -
platform
now requiresAudioContext
,fetch
,Request
,Headers
,createElementNS
,requestAnimationFrame
,cancelAnimationFrame
. It used to requirewindow
(only.AudioContext
,.URL
andEventTarget
),document
(only.createElementNS
andEventTarget
),XMLHttpRequest
,atob
. -
lowerNormalMap
ofMeshStandardMaterial
no longer affects uv transform. -
f90
ofMeshStandardMaterial
is removed. -
WebGLRenderer.setClearColor
andScene.background
now assumes theColor
passed to them is insRGB
color space. WhenWebGLRenderer.render
is called, the color will be converted to respect output encoding (WebGLRenderer.outputEncoding
or render target texture encoding). However,WebGLRenderer.clear
still directly callsWebGLRenderingContext.clear
and does not perform color space conversion. If you want to clear the framebuffer in an encoding aware way, useWebGLRenderer.clearEncodingAware
.