Skip to content

v0.0.8

Compare
Choose a tag to compare
@gkjohnson gkjohnson released this 11 Dec 14:31
· 1080 commits to main since this release

image

Fixed

  • Three.js semver package version.
  • Removed 3 texture sampler units to add room for future features, background map.
  • Texture memory leak in BlurredEnvMapGenerator.
  • PathtracingSceneGenerator / DynamicPathTracingSceneGenerator: both generators now only include visible geometry in the result.

Added

  • GradientEquirectTexture class for generating an equirect background texture with a gradient.
  • AttributesTextureArray class for storing multiple vertex attribute buffers in a sampler array to save texture units.

Removed

  • Removed FEATURE_GRADIENT_BG define and bgGradientTop, bgGradientBottom uniforms. Use the new GradientEquirectTexture class instead.
  • PhysicalPathTracingMaterial: Removed normalAttribute, tangentAttribute, uvAttribute, and colorAttribute uniforms. Use attributesArray to store those parameters, instead.
  • MaterialsTexture.setSide function.

Changed

  • MaterialsTexture automatically uses the specified material side unless the object is transmissive - in which case double-sided is used.
  • Used textures are now reduced to just those with unique sources.
  • PhysicalPathTracingMaterial.uniforms.environmentRotation from a Matrix3 to a Matrix4.
  • Updated three-mesh-bvh to v0.5.19.
  • Rework application of Fresnel based on Joe Shutte's Disney BSDF writeup resulting in improve handling of metalness brightness.
  • Use a 1.1 fresnel by default for plastics since it matches GlTF models more exactly.

New Demo Features