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
1
14k
[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
Tweet
Share
More Decks by lycoris102
See All by lycoris102
コンプリボドゲ2024 ジグザグザクザク 遊び方
lycoris102
0
320
イラレの生成AI + Unity (VectorGraphics) で遊びたい! / Illustrator Generative AI and Unity Vector Graphics
lycoris102
0
720
⌨️ a Key is Landmine 💣のデザイン / Design of "a Key is Landmine"
lycoris102
0
190
[Unity] プレビュー版 Cinemachine 3.0 紹介
lycoris102
1
1.9k
Unityとキャリアとコミュニティの話 / Unity, Carrier, Community
lycoris102
1
200
GOOLF!のデザイン⛳️ / Design of GOOLF!
lycoris102
0
670
[Unity] Mobile3D(2D)テンプレートとモバイル向けパッケージ紹介 / Mobile templates and packages for mobile
lycoris102
0
9.8k
期待値と言語化の話 / Verbalize Expectations
lycoris102
1
4.9k
Sweet^2 Honey Hive
lycoris102
2
1.5k
Other Decks in Technology
See All in Technology
Delta airlines®️ USA Contact Numbers: Complete 2025 Support Guide
airtravelguide
0
340
AWS Organizations 新機能!マルチパーティ承認の紹介
yhana
1
280
KubeCon + CloudNativeCon Japan 2025 Recap by CA
ponkio_o
PRO
0
300
Delta airlines Customer®️ USA Contact Numbers: Complete 2025 Support Guide
deltahelp
0
710
Tokyo_reInforce_2025_recap_iam_access_analyzer
hiashisan
0
190
LLM時代の検索
shibuiwilliam
2
160
SEQUENCE object comparison - db tech showcase 2025 LT2
nori_shinoda
0
140
関数型プログラミングで 「脳がバグる」を乗り越える
manabeai
1
190
無意味な開発生産性の議論から抜け出すための予兆検知とお金とAI
i35_267
4
13k
生成AI活用の組織格差を解消する 〜ビジネス職のCursor導入が開発効率に与えた好循環〜 / Closing the Organizational Gap in AI Adoption
upamune
7
5.3k
20250705 Headlamp: 專注可擴展性的 Kubernetes 用戶界面
pichuang
0
270
AWS認定を取る中で感じたこと
siromi
1
190
Featured
See All Featured
How GitHub (no longer) Works
holman
314
140k
No one is an island. Learnings from fostering a developers community.
thoeni
21
3.4k
Designing Dashboards & Data Visualisations in Web Apps
destraynor
231
53k
Stop Working from a Prison Cell
hatefulcrawdad
271
21k
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
357
30k
Chrome DevTools: State of the Union 2024 - Debugging React & Beyond
addyosmani
7
740
Fashionably flexible responsive web design (full day workshop)
malarkey
407
66k
Fantastic passwords and where to find them - at NoRuKo
philnash
51
3.3k
The Invisible Side of Design
smashingmag
301
51k
Put a Button on it: Removing Barriers to Going Fast.
kastner
60
3.9k
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
251
21k
Mobile First: as difficult as doing things right
swwweet
223
9.7k
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プロジェクトで影を出す