Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
node-3d-ready-raub
Advanced tools
Launch node.js in WebGL mode. Shipped together with three.js for convenience.
Almost the same as Image in browser. This constructor can be used to create one.
Also document.createElement('img')
does the same thing as new Image()
.
Something in between what is known as document
and a <canvas>
element.
For example you can call createElement
on it, but also it has width, height, style
of
a <canvas>
.
A WebGL context instance. This is almost the real WebGL stuff, well, except it isn't.
Actually as of now we seem to use OpenGL 2.1, GLSL 1.20. So there is a hack for
three.js prepending #version 100
to all of its shaders. And if you write pure WebGL
shaders that is WebGL 1.0, GLSL 1.0, you might hit a trouble because of sintax shift in
GLSL 1.2 which is default here (#version 120
). Hence either write more modern GLSL
under this environment or specify #version 100
and write the old code, it's up to you.
An instance of three.js, usually known as THREE
. If you want to go conservative
about it, you might also put it there: global.THREE = node3d.three;
. I won't judge.
A convenience method for three.js to give a hand with texture loading. It has four parameters:
url - where to get an image
onLoad(tex) - gives you a three.js texture, after image is loaded
onProgress - seems to be somewhat useless here
onError - error handling callback
It internally uses THREE.TextureLoader.load which, as you might have noticed has the same parameter layout.
An instance of three.js renderer. It has rather simplistic setup, but knows what to do.
Convenience shortcut for document.requestAnimationFrame
.
FAQs
Launch node.js in WebGL three.js mode.
The npm package node-3d-ready-raub receives a total of 1 weekly downloads. As such, node-3d-ready-raub popularity was classified as not popular.
We found that node-3d-ready-raub demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
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.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.