Skip to content
chubei-oppen edited this page Apr 12, 2022 · 13 revisions

r136-dev -> r137-dev

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 for MeshStandardMaterial. It's uniform name is f90_r115_compatability and not used.

dev -> r136-dev

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 to true. It used to default to false.
  • platform now requires AudioContext, fetch, Request, Headers, createElementNS, requestAnimationFrame, cancelAnimationFrame. It used to require window(only .AudioContext, .URL and EventTarget), document(only .createElementNS and EventTarget), XMLHttpRequest, atob.
  • lowerNormalMap of MeshStandardMaterial no longer affects uv transform.
  • f90 of MeshStandardMaterial is removed.
  • WebGLRenderer.setClearColor and Scene.background now assumes the Color passed to them is in sRGB color space. When WebGLRenderer.render is called, the color will be converted to respect output encoding (WebGLRenderer.outputEncoding or render target texture encoding). However, WebGLRenderer.clear still directly calls WebGLRenderingContext.clear and does not perform color space conversion. If you want to clear the framebuffer in an encoding aware way, use WebGLRenderer.clearEncodingAware.
Clone this wiki locally