engine
engine copied to clipboard
Refactor mask
Summary by CodeRabbit
-
New Features
- Added new properties for default materials used in sprite and text rendering.
- Introduced new static methods for managing stencil states related to mask interactions.
- Added methods for managing stencil and render states in the rendering process.
- Enhanced blend, depth, raster, and stencil state management with optional custom state parameters.
- Updated
SpriteMask
class for improved type safety and resource management.
-
Bug Fixes
- Enhanced handling of mask interactions and stencil states during rendering.
-
Refactor
- Simplified the rendering process by updating method structures and improving clarity in mask handling within the
RenderQueue
class. - Removed outdated private methods to streamline functionality.
- Improved encapsulation and functionality in the
MaskManager
class.
- Simplified the rendering process by updating method structures and improving clarity in mask handling within the