@dualbox/three
v1.130.12
Published
Dualbox fork of Three.js JavaScript 3D library
Downloads
62
Readme
three.js (fork)
Changes from the original three js repo
- [r101] Changed
depth_vert.glsl.jsanddepth_frag.glsl.jsto fix issues with depth on iOS. Achieved by passing downvarying vec2 vHighPrecisionZW; - Implemented a
Conemath object, declared inmath/Cone.jsandmath/Cone.d.ts, and added toThree.jsandThree.d.ts - Implemented a
Cylindermath object, declared inmath/Cylinder.jsandmath/Cylinder.d.ts, and added toThree.jsandThree.d.ts - Added functions
intersectConeandintersectCylindertoRay - Added extra base uniforms (
viewMatrixInverseandprojectionMatrixInverse), that will automatically be attributed byWebGLRenderer - Added
renderSizeuniform to fragment shaders, declared inWebGLProgram.jsand updated byWebGLRenderer - Updated
FXAAShaderto support alpha input - ssaoMap material suport:
- Edited
aomap_fragment.glsl.jsandaomap_pars_fragment.glsl.jsshaders to support the use of ssaoMap. - recorded ssaoMap to
UniformsLib - added ssaoMap uniforms in `Shader lib to :
- basic
- lambert
- phong
- standard
- [r121+] toon
- added
ssaoMapparameter declaration and detection toWebGLPrograms - added support for parameter
ssaoMaptoWebGLProgram's auto define declarations - added material detection of an
ssaoMapparameter to pass down the render pipeline inWebGLRenderer[r101] /WebGLMaterials[r121+] - added
ssaoMapparameter to:MeshBasicMaterialMeshLambertMaterialMeshPhongMaterialMeshStandardMaterial- [r121+]
MeshToonMaterial
- if
aoMapis also defined,ssaoMaptakes precedance over it - added the
ssaoMapMatrixparameter, which can be used to manually compute the SSAO texture coordinates.
- Edited
TODO: add changes from 122 to 130
