Skip to content

Why Outline's props patternTexture type is number? #182

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

Open
Suprhimp opened this issue Mar 10, 2023 · 5 comments
Open

Why Outline's props patternTexture type is number? #182

Suprhimp opened this issue Mar 10, 2023 · 5 comments

Comments

@Suprhimp
Copy link

Hi, I'm very happy to use r3f and react-postprocessing now with my project.

By the way, I found something strange about the OutlineEffect.

I tested the props patternTexture in OutlineEffect, I found that patternTexture type is number. When I follow the OutlineEffect from postprocessing, patternTexture is not number. I think it should be THREE.Texture.

When I just put my pattern image to patternTexture props, it just cover my whole scene like below.
image

  • I think we should allow visibleEdgeColor,hiddenEdgeColor props type string.
@talentlessguy
Copy link
Member

Most likely old version of pp has this prop as a number

we're going to release #179 and #180 soon with latest pp and it should eliminate some problems

@Suprhimp
Copy link
Author

@talentlessguy still, the patternTexture type is number..

@talentlessguy
Copy link
Member

talentlessguy commented Apr 30, 2023

@Suprhimp is it still a number? rpp now uses strictly pp types (before they were custom and potentially outdated)

@Suprhimp
Copy link
Author

Suprhimp commented May 8, 2023

Yep I guess.. I want to fix and make a PR with that but I don't know what should I fix first...

https://github.com/pmndrs/postprocessing/blob/3e6ea9d8fddd2ca2d269e2182752f8199b8248af/src/effects/OutlineEffect.js#L24

@talentlessguy
Copy link
Member

Probably we should omit it from props and handle patternTextture separately

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

No branches or pull requests

2 participants