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
15k
[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
380
イラレの生成AI + Unity (VectorGraphics) で遊びたい! / Illustrator Generative AI and Unity Vector Graphics
lycoris102
0
870
⌨️ a Key is Landmine 💣のデザイン / Design of "a Key is Landmine"
lycoris102
0
220
[Unity] プレビュー版 Cinemachine 3.0 紹介
lycoris102
1
2.2k
Unityとキャリアとコミュニティの話 / Unity, Carrier, Community
lycoris102
1
220
GOOLF!のデザイン⛳️ / Design of GOOLF!
lycoris102
0
700
[Unity] Mobile3D(2D)テンプレートとモバイル向けパッケージ紹介 / Mobile templates and packages for mobile
lycoris102
0
10k
期待値と言語化の話 / Verbalize Expectations
lycoris102
2
4.9k
Sweet^2 Honey Hive
lycoris102
2
1.5k
Other Decks in Technology
See All in Technology
RALGO : AIを組織に組み込む方法 -アルゴリズム中心組織設計- #RSGT2026 / RALGO: How to Integrate AI into an Organization – Algorithm-Centric Organizational Design
kyonmm
PRO
3
1.1k
#22 CA × atmaCup 3rd 1st Place Solution
yumizu
1
160
2025年の医用画像AI/AI×medical_imaging_in_2025_generated_by_AI
tdys13
0
330
国井さんにPurview の話を聞く会
sophiakunii
1
370
Eight Engineering Unit 紹介資料
sansan33
PRO
0
6.2k
re:Invent2025 セッションレポ ~Spec-driven development with Kiro~
nrinetcom
PRO
2
170
Redshift認可、アップデートでどう変わった?
handy
1
140
コミュニティが持つ「学びと成長の場」としての作用 / RSGT2026
ama_ch
0
230
形式手法特論:コンパイラの「正しさ」は証明できるか? #burikaigi / BuriKaigi 2026
ytaka23
16
5.2k
モノタロウ x クリエーションラインで実現する チームトポロジーにおける プラットフォームチーム・ ストリームアラインドチームの 効果的なコラボレーション
creationline
0
780
AIエージェントを5分で一気におさらい!AIエージェント「構築」元年に備えよう
yakumo
1
150
AI Agent Standards and Protocols: a Walkthrough of MCP, A2A, and more...
glaforge
0
220
Featured
See All Featured
Unlocking the hidden potential of vector embeddings in international SEO
frankvandijk
0
140
Ten Tips & Tricks for a 🌱 transition
stuffmc
0
49
How to Talk to Developers About Accessibility
jct
1
97
Exploring the relationship between traditional SERPs and Gen AI search
raygrieselhuber
PRO
2
3.5k
It's Worth the Effort
3n
188
29k
What the history of the web can teach us about the future of AI
inesmontani
PRO
0
400
The agentic SEO stack - context over prompts
schlessera
0
590
Into the Great Unknown - MozCon
thekraken
40
2.2k
Getting science done with accelerated Python computing platforms
jacobtomlinson
1
94
Measuring Dark Social's Impact On Conversion and Attribution
stephenakadiri
1
100
Digital Ethics as a Driver of Design Innovation
axbom
PRO
0
140
GitHub's CSS Performance
jonrohan
1032
470k
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プロジェクトで影を出す