$30 off During Our Annual Pro Sale. View Details »
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
370
イラレの生成AI + Unity (VectorGraphics) で遊びたい! / Illustrator Generative AI and Unity Vector Graphics
lycoris102
0
850
⌨️ a Key is Landmine 💣のデザイン / Design of "a Key is Landmine"
lycoris102
0
210
[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
Strands AgentsとNova 2 SonicでS2Sを実践してみた
yama3133
1
1.8k
TED_modeki_共創ラボ_20251203.pdf
iotcomjpadmin
0
150
【開発を止めるな】機能追加と並行して進めるアーキテクチャ改善/Keep Shipping: Architecture Improvements Without Pausing Dev
bitkey
PRO
1
130
さくらのクラウド開発ふりかえり2025
kazeburo
2
1.1k
MariaDB Connector/C のcaching_sha2_passwordプラグインの仕様について
boro1234
0
1k
[Data & AI Summit '25 Fall] AIでデータ活用を進化させる!Google Cloudで作るデータ活用の未来
kirimaru
0
3.8k
『君の名は』と聞く君の名は。 / Your name, you who asks for mine.
nttcom
1
120
MySQLとPostgreSQLのコレーション / Collation of MySQL and PostgreSQL
tmtms
1
1.2k
子育てで想像してなかった「見えないダメージ」 / Unforeseen "hidden burdens" of raising children.
pauli
2
320
テストセンター受験、オンライン受験、どっちなんだい?
yama3133
0
150
Connection-based OAuthから学ぶOAuth for AI Agents
flatt_security
0
360
Introduce marp-ai-slide-generator
itarutomy
0
110
Featured
See All Featured
sira's awesome portfolio website redesign presentation
elsirapls
0
89
How STYLIGHT went responsive
nonsquared
100
6k
Leadership Guide Workshop - DevTernity 2021
reverentgeek
0
170
Hiding What from Whom? A Critical Review of the History of Programming languages for Music
tomoyanonymous
0
300
The Illustrated Children's Guide to Kubernetes
chrisshort
51
51k
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
141
34k
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
52
5.8k
Navigating the Design Leadership Dip - Product Design Week Design Leaders+ Conference 2024
apolaine
0
120
Building Better People: How to give real-time feedback that sticks.
wjessup
370
20k
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
122
21k
[SF Ruby Conf 2025] Rails X
palkan
0
560
Max Prin - Stacking Signals: How International SEO Comes Together (And Falls Apart)
techseoconnect
PRO
0
49
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プロジェクトで影を出す