2017-04-29から1日間の記事一覧

WebGL 教科書の写経、その3

平行光源によるライティング <meta charset="utf-8"> <title>WebGL</title> <style> body { background: black; } </style> <body> <canvas width="512" height="512"</canvas> <script id="vshader" type="x-shader/x-vertex"> attribute vec3 position; attribute vec3 normal; attribute vec4 color…</canvas></body></meta>