Socket
Socket
Sign inDemoInstall

@dualbox/three

Package Overview
Dependencies
0
Maintainers
2
Versions
21
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @dualbox/three

Dualbox fork of Three.js JavaScript 3D library


Version published
Weekly downloads
2
decreased by-60%
Maintainers
2
Install size
27.4 MB
Created
Weekly downloads
 

Readme

Source

three.js (fork)

Changes from the original three js repo

  • [r101] Changed depth_vert.glsl.js and depth_frag.glsl.js to fix issues with depth on iOS. Achieved by passing down varying vec2 vHighPrecisionZW;
  • Implemented a Cone math object, declared in math/Cone.js and math/Cone.d.ts, and added to Three.js and Three.d.ts
  • Implemented a Cylinder math object, declared in math/Cylinder.js and math/Cylinder.d.ts, and added to Three.js and Three.d.ts
  • Added functions intersectCone and intersectCylinder to Ray
  • Added extra base uniforms (viewMatrixInverse and projectionMatrixInverse), that will automatically be attributed by WebGLRenderer
  • Added renderSize uniform to fragment shaders, declared in WebGLProgram.js and updated by WebGLRenderer
  • Updated FXAAShader to support alpha input
  • ssaoMap material suport:
    • Edited aomap_fragment.glsl.js and aomap_pars_fragment.glsl.js shaders to support the use of ssaoMap.
    • recorded ssaoMap to UniformsLib
    • added ssaoMap uniforms in `Shader lib to :
      • basic
      • lambert
      • phong
      • standard
      • [r121+] toon
    • added ssaoMap parameter declaration and detection to WebGLPrograms
    • added support for parameter ssaoMap to WebGLProgram's auto define declarations
    • added material detection of an ssaoMap parameter to pass down the render pipeline in WebGLRenderer [r101] / WebGLMaterials [r121+]
    • added ssaoMap parameter to:
      • MeshBasicMaterial
      • MeshLambertMaterial
      • MeshPhongMaterial
      • MeshStandardMaterial
      • [r121+] MeshToonMaterial
    • if aoMap is also defined, ssaoMap takes precedance over it
    • added the ssaoMapMatrix parameter, which can be used to manually compute the SSAO texture coordinates.

TODO: add changes from 122 to 130

Keywords

FAQs

Last updated on 07 Aug 2023

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc