Skip to main content
GameDev.net gamedev.net
Developer Blog

This is a developer's personal perspective or experience. Views expressed are those of the author.

PRO Tired of ads? Read GameDev.net ad-free and help keep the community independent with GameDev Pro — $3/month.

Catlike Coding Unity
Catlike Coding Unity Blog
· 1 month, 3 weeks ago

Custom SRP 7.1.0 Splitting Shadow Code

Briefing

Catlike Coding Unity is refactoring its Custom SRP 7.1.0 shadow pipeline by pulling point-light and spot-light logic out of the monolithic Shadows class and into a new OtherShadows class. The tutorial is built with Unity 6000.5.8f1 and follows the earlier Custom SRP 7.0.0 work, but this step is about structure rather than new rendering behavior.

The practical change is that other shadows now own their own settings, light bookkeeping, render info, and resource handles. A new Handles struct wraps the atlas texture and data buffer, while a public Setup method resets state and a HasLights property lets the main Shadows driver decide whether there is anything to render. ReserveShadows is also made public and now takes culling results as a parameter, along with a ref flag for shadow-mask usage.

The renderer setup is being split too. GetHandles now creates the shadow atlas and buffer for other shadows, and BuildRendererLists passes culling data through to specialized point-shadow and spot-shadow paths. Shared helpers such as ConvertToAtlasMatrix and SetTileViewport are being promoted back into Shadows so both systems can reuse them cleanly.

For developers building custom SRPs in Unity, this is the kind of refactor that pays off later: less coupling, clearer ownership, and fewer reasons for unrelated shadow code to break when one path changes. The exact visual output stays the same, but the codebase becomes easier to extend when the next shadow feature lands.

“Changed code, same shadows.”

— Catlike Coding Unity · The tutorial's framing for the refactor
At a glance
what
Custom SRP 7.1.0 splits shadow code into a new OtherShadows class for point and spot lights.
who
Catlike Coding Unity, working in Unity 6000.5.8f1.
when
This tutorial follows Custom SRP 7.0.0 and introduces version 7.1.0.
impact
Custom SRP authors get cleaner separation, easier reuse, and simpler future shadow changes.
Signal Neutral

Pure refactor; no visual or feature change

Discuss

Follow Unity updates

See relevant stories in your personalized news feed.

Sign in to follow

Continue on GameDev.net

Useful next steps related to this story.

Game development news without the noise

One useful weekly briefing. No daily flood.

Sending your confirmation email…

Discussion

Loading comments...

Recommended resources

Game Engines

See full guide
Unreal Engine 5 Best Practices cover
Editor pick

Unreal Engine 5 Best Practices

Amazon · Book

Written by multi-award-winning Unreal generalist Tyson J. Butler-Boschma, Founder and Creative Director of Toybox Games Studios, this book addresses common challenges you face when advancing your expertise in lighting, environment design, and cinematic storytelling.

GameDev.net may earn a commission if you purchase through these links. This helps fund the site at no extra cost to you.

GameDev.net may earn a commission if you purchase through these links. This helps fund the site at no extra cost to you.