-
Notifications
You must be signed in to change notification settings - Fork 204
refactor: clarify that SetupTransparentMode() configures transparency for outline rendering #705
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR refactors the SetupTransparentMode function to be more specific to outline rendering, removing unused legacy code and improving code clarity. The changes focus on consolidating SRP-specific logic and making the naming more descriptive.
Key Changes:
- Removed the unused
srpDefaultLightModeNameproperty that handled legacy render pipeline logic - Renamed
SetupTransparentModetoSetupTransparentModeForOutlineto better reflect its purpose - Added SRP-specific preprocessor guards and improved inline documentation
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| com.unity.toonshader/Editor/UTS3GUI.cs | Removed srpDefaultLightModeName property, renamed function to SetupTransparentModeForOutline, added preprocessor guards, and improved variable naming with inline comments |
| com.unity.toonshader/Editor/Converter/FromUTS2/BuiltInUTS2toIntegratedConverter.cs | Updated function call to use the renamed SetupTransparentModeForOutline method |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| const string srpDefaultColorMask = "_SPRDefaultUnlitColorMask"; | ||
| const string srpDefaultCullMode = "_SRPDefaultUnlitColMode"; | ||
| const string OUTLINE_COLOR_MASK = "_SPRDefaultUnlitColorMask"; | ||
| const string OUTLINE_CULL_MODE = "_SRPDefaultUnlitColMode"; |
Copilot
AI
Dec 29, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Corrected spelling of 'Col' to 'Cull' in constant name.
| const string OUTLINE_CULL_MODE = "_SRPDefaultUnlitColMode"; | |
| const string OUTLINE_CULL_MODE = "_SRPDefaultUnlitCullMode"; |
bd8d362 to
a1ded8e
Compare
No description provided.