Path tracing renderer and utilities for three.js built on top of three-mesh-bvh.
Material.flatShading
to render flat-shaded materials.BlurredEnvMapGenerator
.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.FEATURE_GRADIENT_BG
define and bgGradientTop, bgGradientBottom uniforms. Use the new GradientEquirectTexture class instead.normalAttribute
, tangentAttribute
, uvAttribute
, and colorAttribute
uniforms. Use attributesArray
to store those parameters, instead.MaterialsTexture.setSide
function.MaterialsTexture
automatically uses the specified material side unless the object is transmissive - in which case double-sided is used.PhysicalPathTracingMaterial.uniforms.environmentRotation
from a Matrix3
to a Matrix4
.material.transparent
to true.floatBitsToInt
.PathTracingRenderer.alpha
not being able to be changed after rendering.M2020 Rover model courtesy of NASA JPL
DynamicPathTracingSceneGenerator.reset
not correctly resetting the class resulting in errors when calling "generate" again.SUPPORT_DOF
no longer needs to be explicitly set and will be toggled automatically based on the bokeh size parameter.BlurredEnvMapGenerator
to preblur an environment map.GRADIENT_BG
define option to FEATURE_GRADIENT_BG
BlurredEnvMapGenerator
to blur environment maps.DataTexture
, instead.