1
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

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

1
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、カメラ操作可能)

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?