0
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.

Light Shaftsでライブのライトを再現

Last updated at Posted at 2019-01-06

ライブの照明、特に光の筋が見えるやつをUnityで再現したいなぁと思ってたらなんかできました。
Unity 2018.2.9f1

まず、Sample Assets for Unity 4.6をインポートします。
Unity4用に作られたものですが、インポートする際にUnity5に合わせて最適化することができるのでそうしましょう。
Light ShaftsのフォルダだけでOKです。

このままだとエラーを吐くのでコードを一行だけ変えます。
LightShafts.csの88行目の
Application.platform == RuntimePlatform.WindowsWebPlayer
(うろおぼえ)
を消せばライトにアタッチすることができるようになります。
Direct lightとSpotlightのみ対応しているようです。

アタッチした状態でSceneを見ても何も起きませんが、実際にGameビューで見ると光の筋が見えるようになっています。

参考元
http://mikasa.hatenablog.jp/entry/2015/05/05/125947
http://tsubakit1.hateblo.jp/entry/2014/10/01/013054

0
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
0
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?