Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

gl-phong-material

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gl-phong-material

Phong material for 3d scenes using stack.gl

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

gl-phong-material

STYLE PARAMETERS

ambient : vec3 ambient color component, default [0.2, 0.2, 0.2]

diffuse : vec3 diffuse color component, default [0.8, 0.8, 0.8]

specular : vec3 specular color component, default [0.8, 0.8, 0.8]

shininess : float surface roughness, 0 for smooth, 1 for matte, default 0.7

install

npm install gl-phong-material
var phong = require('gl-phong-material')
var material = require('gl-material')(gl, phong, {LIGHTCOUNT: 1})

Or just get the fragment shader for use elsewhere

var fragment = require('gl-phong-material').fragment

Keywords

phong

FAQs

Package last updated on 29 Dec 2016

Did you know?

Socket

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.

Install

Related posts