
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
surface-vectors
Advanced tools

Debug utility for drawing surface vectors in WebGL.
Useful for visualising normal/tangent/bitangent vectors across a mesh's surface.
If you're looking for a complete usage example, check out the demo and its source code.
Prepare a pair of positions and vectors for rendering.
gl is the WebGL canvas context.cells should be a list of element/face indices for your model: either a
packed Float32Array, or a nested 2D array. See the
bunny module's data for an example
of this.positions should a list of positions for your model: again, in either of
the above formats.vectors same format as positions and cells, instead containing the
vectors to render from each point at the same index in positions.Draws the vectors to the screen.
length is the length at which to draw each vector.matrix the matrix to multiply each position by. Ordinarily, you'd want this
to be Projection * View * Model, like you would normally do shader-side.color the color to use when drawing the vectors: a 3-element long array,
and should contain RGB values from 0 to 1.MIT. See LICENSE.md for details.
FAQs
Debug utility for drawing surface vectors in WebGL.
We found that surface-vectors 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.