LoginSignup
1
2

More than 3 years have passed since last update.

webに埋め込むためのshader art用テンプレート

Last updated at Posted at 2019-04-16

概要

shaderで絵を書いた後に、その絵をwebに埋め込むのがいつも大変でした。
openFrameworksで書いても大変。
unityで書いても大変。
何が大変かというと、いい感じにhtmlとjsのセットを吐くのが大変なのです。

なので、typescirpt + three.js で書けるようにしました。
こうすると、htmlとjsのセットを吐くのが簡単です。
hot reloadになっています。

リポジトリ

3D version (vertex shader & fragment shader、カメラ操作可能)

https://github.com/ryokomy/ts-webpack-threejs-shader-3d-template


2D version (shader art)

https://github.com/ryokomy/ts-webpack-threejs-shader-template
shader.gif

npm install
npm run start

として、localhost:8080 にアクセスするだけなので、どうぞ使ってみてください。

1
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
2