Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
[Unity] URP + ShadowCaster2D 2Dプロジェクトで影を出す / Ca...
Search
lycoris102
December 07, 2019
Technology
15k
1
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
[Unity] URP + ShadowCaster2D 2Dプロジェクトで影を出す / Cast Shadow with URP in 2D Project
【年末だよ】Unity お・と・なのLT大会 2019
https://meetup.unity3d.jp/jp/events/1178
lycoris102
December 07, 2019
More Decks by lycoris102
See All by lycoris102
コンプリボドゲ2024 ジグザグザクザク 遊び方
lycoris102
0
420
イラレの生成AI + Unity (VectorGraphics) で遊びたい! / Illustrator Generative AI and Unity Vector Graphics
lycoris102
0
990
⌨️ a Key is Landmine 💣のデザイン / Design of "a Key is Landmine"
lycoris102
0
260
[Unity] プレビュー版 Cinemachine 3.0 紹介
lycoris102
1
2.4k
Unityとキャリアとコミュニティの話 / Unity, Carrier, Community
lycoris102
1
240
GOOLF!のデザイン⛳️ / Design of GOOLF!
lycoris102
0
730
[Unity] Mobile3D(2D)テンプレートとモバイル向けパッケージ紹介 / Mobile templates and packages for mobile
lycoris102
0
10k
期待値と言語化の話 / Verbalize Expectations
lycoris102
2
5k
Sweet^2 Honey Hive
lycoris102
2
1.6k
Other Decks in Technology
See All in Technology
2年前に削除したPHPクラスが、 ある日突然決済をエラーにした
ykagano
1
260
発表と総括 / Presentations and Summary
ks91
PRO
0
140
しくみを学んで使いこなそう GitHub Copilot app
torumakabe
2
280
壊して学ぶAWS CDK: そのcdk deployで消えるもの、残るもの
k_adachi_01
1
370
ファミコンでPHPを動かす / PHP on the Famicom
tomzoh
2
320
End-to-Endで考える信頼性 —LINEアプリにおけるクライアント開発×SRE連携の実践
maruloop
4
4.5k
Oracle Exadata Database Service on Cloud@Customer X11M (ExaDB-C@C) サービス概要
oracle4engineer
PRO
2
8.4k
AI時代のPlaywright活用(システムテストを自動化する ー 実行エンジンにPla ywrightを選んだ理由)
ynisqa1988
0
130
非定型なドキュメントを効率よくリファクタする 〜えぇ!?仕様書27本の移行が1日で終わったって!?〜
subroh0508
2
550
SRE依存からの脱却 運用を開 発チームへ移す、 フルサイ クル開 発体制の実践
joooee0000
0
3.1k
AI Driven AI Governance
pict3
0
480
タスクの複雑さでモデルを選ぶ ── Thompson Samplingで動かす“トークン/コスト最適化
satohy0323
0
550
Featured
See All Featured
How to Ace a Technical Interview
jacobian
281
24k
Amusing Abliteration
ianozsvald
1
230
Digital Ethics as a Driver of Design Innovation
axbom
PRO
1
340
The Art of Programming - Codeland 2020
erikaheidi
57
14k
Bridging the Design Gap: How Collaborative Modelling removes blockers to flow between stakeholders and teams @FastFlow conf
baasie
0
610
SERP Conf. Vienna - Web Accessibility: Optimizing for Inclusivity and SEO
sarafernandez
2
1.5k
More Than Pixels: Becoming A User Experience Designer
marktimemedia
3
460
Designing for Performance
lara
611
70k
What the history of the web can teach us about the future of AI
inesmontani
PRO
1
630
Improving Core Web Vitals using Speculation Rules API
sergeychernyshev
21
1.5k
The Cult of Friendly URLs
andyhume
79
6.9k
Writing Fast Ruby
sferik
630
63k
Transcript
【年末だよ】Unity お・と・なのLT大会 2019 青木とと@lycoris102 URP + ShadowCaster2D Universal Render
Pipeline 2Dプロジェクトで影を出す
だれ? 2 @lycoris102 青木とと ねんれい:29 しごと: 株式会社キッズスター かぞく: 妻と3歳の息子 ・Unityアンバサダー
・Gotanda.unity ・UnityDesigner’sCafe ・勉強会主催/サポート ・ゆるふわゲームクリエイター
だれ? 3 こんな感じの個人ゲームも作っています https://unityroom.com/users/lycoris102 企画+デザイン+エンジニアリング+音楽
4 この前 Roppongi.unity #5 で LWRP + Light2Dに関する発表をしました https://speakerdeck.com/lycoris102/unity-light2d-tutorial 前回のおさらい
5 適応例: 画面全体をGlobalLightで制御しつつ、PointLightでサーチライトを作成 前回のおさらい
6 そういえば影は付けられないのですか? 前回のおさらい (Roppongi.unity 懇親会にて)
7 影 出せるのかな…… Shadow 影は出せる?
8 [Unity Forums] Experimental 2D Lights and Shader Graph support
in LWRP https://forum.unity.com/threads/experimental-2d-lights-and-shader-graph-support-in-lwrp.683623/ …… 影は出せる?
9 ShadowCaster2Dコンポーネントが UniversalRP の v7.1.2 から加わってますよ !! 影は出せる?
10 (Changelogではv7.1.1だけど) 確かに影が追加された記述がある……!! https://docs.unity3d.com/Packages/
[email protected]
/changelog/CHANGELOG.html 影は出せる?
11 さっそく 試してみる 多分 DEMO
12 PackageManager経由で UniversalRPをインストール 下準備
13 PipelineAssetを作り ProjectSeetings > Graphics に設定することで UniversalRPを適応する 下準備
14 生成したPipelineAssetの Rendererの設定に 2Drenderer (Experimental) を適応する これによりSpriteのデフォルトのマテリアル/シェーダーがURPのものになる等する 下準備
15 下準備 2DLightが使えるようになったので Create > Light > 2D でライトを設置 現時点ではまだ影は付いていない状態
16 影 出すぞ! Shadow
17 影の適応 影を適応したいLight2Dの ShadowIntensity (影の強弱) の項目を変更 この時点ではまだ影は表示されない
18 影を表示したいSpriteRendererに対して ShadoCaster2D コンポーネントをアタッチ 影は表示されたが、光の遮り方がおかしい 影の適応
19 EditShapeを使って 光を遮る範囲を大まかに設定する DebugViewだと直接座標を入れることも可能 (CustomOutlineをそのまま適応したい……) 影の適応
20 CompositeShadowCaster2Dで 影の一括制御も行うことができる Disable Enable 影の適応
21 その他の細かい設定はドキュメントを参照 https://docs.unity3d.com/Packages/
[email protected]
/manual/2DShadows.html 影の適応
22 影 あると何がいいの? Shadow
23 動く要素が増え、オブジェクトに対する注意が強くなったり、空間全域を使えるようになる 影があるとなんとなく エモい 影 is エモい
24 擬似的な立体感、実際のオブジェクトに近い認知 (もちろんXYの影なので違和感はある) 影があるとなんとなく エモい 影 is エモい
25 影 エモい! Shadow
26 Light2Dおよび ShadowCaster2Dは Experimental お知らせ 必ずしも正しい挙動であるとは限らない もし何かあればフォーラムに報告すると良さそう 今はパフォーマンス周りの課題に取り組んでいるっぽい お知らせ
27 2DDL PRO というアセットもオススメ URP使えない / 安定したものを使いたい人は お知らせ 光に対する当たり判定も仕込むことができ、かなり多機能なので気になる人は一度アセットページを見よう
28 昔 2DDL PRO を使って作ったカジュアルゲーム https://unityroom.com/games/oneline お知らせ
29 宣伝 時間があれば
30 Gotanda.unity #15 in マイクロソフト@品川 unity1week meetup2020 in UTJ@銀座 色々な会社を廻るLT勉強会
今回も登壇者を募集します! unity1week参加者の交流会 ゲーム展示などの企画を実施 2020/1/8(水) 2020/1/18(土) 12:00~16:00 19:30~22:00 2019/12/10(火) 12:00 イベントページ公開! 来年もゆるく勉強会やっていくのでよろしくおねがいします……お手柔らかに……
【年末だよ】Unity お・と・なのLT大会 2019 青木とと@lycoris102 URP + ShadowCaster2D Universal Render
Pipeline 2Dプロジェクトで影を出す