
Research
Node.js Fixes AsyncLocalStorage Crash Bug That Could Take Down Production Servers
Node.js patched a crash bug where AsyncLocalStorage could cause stack overflows to bypass error handlers and terminate production servers.
glsl ggx lighting model
var regl = require('regl')()
var camera = require('regl-camera')(regl, {
distance: 100,
center: [0,58,0],
theta: Math.PI/2
})
var glx = require('glslify')
var anormals = require('angle-normals')
var dragon = require('stanford-dragon')
var draw = regl({
frag: glx`
precision mediump float;
#pragma glslify: ggx = require('glsl-ggx')
uniform vec3 eye, lightpos;
varying vec3 vpos, vnorm;
void main () {
vec3 N = vnorm, V = normalize(eye-vpos), L = normalize(lightpos-vpos);
float spec = max(0.0,ggx(N,V,L,0.2,0.7));
vec3 c = vec3(0.955,0.637,0.538); // copper
gl_FragColor = vec4(pow(c*spec,vec3(2.2)),1);
}
`,
vert: `
precision mediump float;
uniform mat4 projection, view;
attribute vec3 position, normal;
varying vec3 vpos, vnorm;
void main () {
vpos = position;
vnorm = normal;
gl_Position = projection * view * vec4(position,1);
}
`,
attributes: {
position: dragon.positions,
normal: anormals(dragon.cells, dragon.positions)
},
elements: dragon.cells,
uniforms: {
lightpos: function (context) {
var t = context.time*4, r = 30
return [Math.cos(t)*r,Math.sin(t)*r+60,200]
}
}
})
regl.frame(function () {
regl.clear({ color: [0.4,0.2,0.4,1], depth: true })
camera(function () { draw() })
})
#pragma glslify: ggx = require('glsl-ggx')
Compute the ggx specular lighting from:
vec3 N - surface normalvec3 V - normalized view directionvec3 L - normalized light directionfloat roughness - smooth (0.0) to rough (1.0)float F0 - fresnel term, 0.0 to 1.0BSD
FAQs
glsl ggx lighting model
We found that glsl-ggx 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
Node.js patched a crash bug where AsyncLocalStorage could cause stack overflows to bypass error handlers and terminate production servers.

Research
/Security News
A malicious Chrome extension steals newly created MEXC API keys, exfiltrates them to Telegram, and enables full account takeover with trading and withdrawal rights.

Security News
CVE disclosures hit a record 48,185 in 2025, driven largely by vulnerabilities in third-party WordPress plugins.