rapirent / Shader-implementation

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

shader

使用 WebGL 與 GLSL 實作各種著色法, 物體操縱與視角操作 (仿射變換)

共實作七種著色法: flat, gouraud, phong, blinn-phong, spherical enviorment(phong and gouraud), cel

How to Use

  • browse the website of this repo

  • or you can clone this repo on your local machine, and open the localhost by python, nodejs or somewhat

$ python3 -m http.server 5000

control table

  • ws for y axis translate
  • ad for x axis translate
  • qz for z axis translate
  • ec for x axis shear
  • rt for x axis scaling
  • fg for y axis scaling
  • vb for z axis scaling
  • {} for scaling
  • mouse for rotate
  • enter key for start/stop animate rotate
  • arrow key for animate rotation direction

then?

  • enjoy yourself!

Reference

LICENSE

Kuoteng, Ding @ MIT, 2018

About


Languages

Language:JavaScript 82.4%Language:HTML 15.8%Language:CSS 1.8%