New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

three-js

Package Overview
Dependencies
Maintainers
1
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

three-js

JavaScript 3D library and its addons

latest
Source
npmnpm
Version
79.0.0
Version published
Weekly downloads
333
-24.32%
Maintainers
1
Weekly downloads
 
Created
Source

npm three.js

NPM version of three-js 79 and its addons.

install

npm i three-js

import with... import

import THREELib from "three-js";
var THREE = THREELib(); // return THREE JS
// or
var THREE = THREELib(["EffectComposer", ...]); // return THREE JS extended by its addons

import with require

var THREE = require("three-js")(); // return THREE JS
// or
var THREE = require("three-js")(["EffectComposer", ...]); // return THREE JS extended by its addons

available addons

  • AdaptativeToneMapping
  • BasicShader
  • BleachBypassShader
  • BlendShader
  • BloomShader
  • BloomPass
  • BokehPass
  • BokehShader
  • BokehShader2
  • BrightnessContrastShader
  • CanvasRenderer
  • ColorCorrectionShader
  • ColorifyShader
  • ConvolutionShader
  • CopyShader
  • DDSLoader
  • DigitalGlitch
  • DOFMipMapShader
  • DotScreenPass
  • DotScreenShader
  • EdgeShader
  • EdgeShader2
  • EffectComposer
  • FilmPass
  • FilmShader
  • FocusShader
  • FresnelShader
  • FXAAShader
  • GammaCorrectionShader
  • GlitchPass
  • HorizontalBlurShader
  • HorizontalTiltShiftShader
  • HueSaturationShader
  • JSONLoader
  • KaleidoShader
  • LuminosityShader
  • MarchingCubes
  • MaskPass
  • MirrorShader
  • MTLLoader
  • NormalMapShader
  • OBJLoader
  • OceanShader
  • OrbitControls
  • ParallaxShader
  • Projector
  • RenderPass
  • RGBShiftShader
  • SavePass
  • SepiaShader
  • ShaderPass
  • SSAOShader
  • SVGLoader
  • TechnicolorShader
  • TexturePass
  • ToneMapShader
  • TriangleBlurShader
  • UnpackDepthRGBAShader
  • VerticalBlurShader
  • VerticalTiltShiftShader
  • VignetteShader

request an addon

There is a lot of three-js addons, if one is missing, feel free to make a pull request or send it as an issue with a link to the addon.

make a pull-request

Three-js addons looks like that in common js:

THREE.EffectComposer = function(){
	//...
}

You only have to encapsulate the entire addon like that:

module.export = function( THREE ){
	
	THREE.EffectComposer = function(){
		//...
	}

};

Only official or very honorable and stable addons will be accepted/validated.

All tributes to original authors.

Keywords

three

FAQs

Package last updated on 22 Aug 2016

Did you know?

Socket

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