Skip to content
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

Rename default shader methods to have a base* prefix #7288

Merged
merged 1 commit into from
Sep 24, 2024

Conversation

davepagurek
Copy link
Contributor

In #7256 we realized that the shader hooks methods, like strokeShader() to augment the default stroke shader, would clash with the method strokeShader(yourShader) to override what shader is used to draw strokes.

This renames the shader hook methods to have a base* prefix. So, baseStrokeShader() returns our default shader to modify, leaving us free to have strokeShader(yourShader) still set the active stroke shader.

Copy link
Contributor

@perminder-17 perminder-17 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, also works well. Thanks for your work!

@davepagurek davepagurek merged commit 98d8394 into processing:main Sep 24, 2024
2 checks passed
@davepagurek davepagurek deleted the rename-shader-hooks branch September 24, 2024 22:35
davepagurek added a commit that referenced this pull request Sep 24, 2024
Rename default shader methods to have a base* prefix
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants