
Security News
OpenClaw Skill Marketplace Emerges as Active Malware Vector
Security researchers report widespread abuse of OpenClaw skills to deliver info-stealing malware, exposing a new supply chain risk as agent ecosystems scale.
glsl-specular-phong
Advanced tools
Computes the Phong specular weight for a light source
#pragma glslify: phongSpec = require(glsl-specular-phong)
uniform vec3 eyePosition;
uniform vec3 lightPosition;
uniform float shininess;
varying vec3 surfacePosition;
varying vec3 surfaceNormal;
void main() {
vec3 eyeDirection = normalize(eyePosition - surfacePosition);
vec3 lightDirection = normalize(lightPosition - surfacePosition);
vec3 normal = normalize(surfaceNormal);
float power = blinnPhongSpec(lightDirection, viewDirection, normal, shininess);
gl_FragColor = vec4(power,power,power,1.0);
}
Install with npm:
npm install glsl-specular-phong
Then use with glslify.
#pragma glslify: phong = require(glsl-specular-phong)
float phong(vec3 lightDir, vec3 eyeDir, vec3 normal, float shininess)Computes the specular power in the Phong lighting model.
lightDir is a unit length vec3 pointing from the surface point toward the lighteyeDir is a unit length vec3 pointing from the surface point toward the cameranormal is the surface normal at the sample pointshininess is the exponent in the Phong equationReturns A float representing the specular power
(c) 2014 Mikola Lysenko. MIT License
FAQs
Phong specular distribution in GLSL
The npm package glsl-specular-phong receives a total of 3 weekly downloads. As such, glsl-specular-phong popularity was classified as not popular.
We found that glsl-specular-phong 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
Security researchers report widespread abuse of OpenClaw skills to deliver info-stealing malware, exposing a new supply chain risk as agent ecosystems scale.

Security News
Claude Opus 4.6 has uncovered more than 500 open source vulnerabilities, raising new considerations for disclosure, triage, and patching at scale.

Research
/Security News
Malicious dYdX client packages were published to npm and PyPI after a maintainer compromise, enabling wallet credential theft and remote code execution.