Socket
Socket
Sign inDemoInstall

gl-phong-material

Package Overview
Dependencies
68
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    gl-phong-material

Phong material for 3d scenes using stack.gl


Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Install size
5.15 MB
Created
Weekly downloads
 

Readme

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

FAQs

Last updated on 29 Dec 2016

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc