Skip to content

chore: stencil types - #246

Merged
gordonnl merged 2 commits into
oframe:masterfrom
pschroen:chore/stencil-types
Apr 13, 2025
Merged

chore: stencil types#246
gordonnl merged 2 commits into
oframe:masterfrom
pschroen:chore/stencil-types

Conversation

@pschroen

Copy link
Copy Markdown
Contributor

Mirroring the stencil updates, plus house cleaning with prettier.

Related PR: #244

Comment thread src/core/Renderer.js

// Same for stencil
if(this.stencil || (!target || target.stencil)) {
if (this.stencil || !target || target.stencil) {

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@DougLilliequist is this supposed to have an and (&&) operator like the depth buffer?

if (this.stencil && (!target || target.stencil)) {

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

It seems like it got merged broken since

this.stencil || !target || target.stencil

will be true if the target is null no matter what the stencil setting is...

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I don't think it's currently causing any errors, though that's why I asked.

@gordonnl we should probably fix that, even if it's not causing errors, the stencil mask is likely being set even when there is no stencil.

@gordonnl
gordonnl merged commit 385ce65 into oframe:master Apr 13, 2025
@pschroen
pschroen deleted the chore/stencil-types branch April 13, 2025 22:15
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.

3 participants