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
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
lycoris102
December 07, 2019
Technology
15k
1
Share
[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
400
イラレの生成AI + Unity (VectorGraphics) で遊びたい! / Illustrator Generative AI and Unity Vector Graphics
lycoris102
0
940
⌨️ a Key is Landmine 💣のデザイン / Design of "a Key is Landmine"
lycoris102
0
240
[Unity] プレビュー版 Cinemachine 3.0 紹介
lycoris102
1
2.3k
Unityとキャリアとコミュニティの話 / Unity, Carrier, Community
lycoris102
1
230
GOOLF!のデザイン⛳️ / Design of GOOLF!
lycoris102
0
720
[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
エージェント時代の UIとAPI、CLI戦略
coincheck_recruit
0
110
AI活用時代の事業判断高度化を導くエンジニアリング基盤 / 20260424 Atsushi Funahashi
shift_evolve
PRO
2
120
Percolatorを廃止し、マルチ検索サービスへ刷新した話 / Search Engineering Tech Talk 2026 Spring
visional_engineering_and_design
0
230
ServiceNow Knowledge 26 の歩き方
manarobot
0
300
Chasing Real-Time Observability for CRuby
whitegreen
0
700
Modernizing Your HCL Connections Experience: Visual Report to chain, Profile Enhancements, and AI Integration
wannesrams
0
250
試作とデモンストレーション / Prototyping and Demonstrations
ks91
PRO
0
160
ブラウザの投機的読み込みと投機ルールAPIを理解し、Webサービスのパフォーマンスを最適化する
shuta13
2
250
M5Stack CoreS3とZephyr(RTOS)で Edge AIっぽいことしてみた
iotengineer22
0
410
GitHub Copilot CLI と VS Code Agent Mode の使い分け
tomokusaba
0
130
Building a Study Buddy AI Agent from Scratch: From Passive Chatbots to Autonomous Systems
itchimonji
0
120
20260428_Product Management Summit_tadokoroyoshiro
tadokoro_yoshiro
15
18k
Featured
See All Featured
DevOps and Value Stream Thinking: Enabling flow, efficiency and business value
helenjbeal
1
170
Done Done
chrislema
186
16k
The Illustrated Guide to Node.js - THAT Conference 2024
reverentgeek
1
340
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
162
16k
Bridging the Design Gap: How Collaborative Modelling removes blockers to flow between stakeholders and teams @FastFlow conf
baasie
0
530
More Than Pixels: Becoming A User Experience Designer
marktimemedia
3
390
How to optimise 3,500 product descriptions for ecommerce in one day using ChatGPT
katarinadahlin
PRO
1
3.6k
Amusing Abliteration
ianozsvald
1
160
Rails Girls Zürich Keynote
gr2m
96
14k
10 Git Anti Patterns You Should be Aware of
lemiorhan
PRO
659
62k
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
287
14k
The MySQL Ecosystem @ GitHub 2015
samlambert
251
13k
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プロジェクトで影を出す