Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
gl-tetrahedron
Advanced tools
This has been forked from mattdesl's awesome work. I stand on his shoulders.
Creates an indexed tetrahedron that you can draw.
The side lengths of the tetrahedron are 1 by default. The "top" vertex lies on the positive z axis while the "bottom" of the tetrahedron is parallel to the xy plane. The tetrahedron is centered at the origin. This is intended to make it easy to use in utilities where you need some kind of direction indicator. For example, I use it in my gl-vector-field (http://github.com/coballast/gl-vector-field) repo as a default direction mesh. I apply non uniform scaling in the shader to indicate magnitude.
var gl = require('webgl-context')
var tetra = require('gl-tetrahedron')(gl)
tetra.draw( myShader )
The passed shader is expected to have position
and normal
attributes.
var tetra = createTetra(gl)
Creates a new tetrahedron with position and normal buffers.
tetra.draw([shader])
Draws the tetrahedron with a gl-shader.
If a shader is not passed, it's assumed that you've already bound a shader.
tetra.dispose()
Disposes the tetrahedron.
tetra.mesh
The gl-mesh Object backing this tetrahedron.
MIT, see LICENSE.md for details.
FAQs
a simple tetrahedron utility for stackgl
We found that gl-tetrahedron 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.