Pixel perfect detection with BaseRenderTexture #7356
Answered
by
ivanpopelyshev
KennethGomez
asked this question in
Q&A
-
I've seen an example of pixel perfect detection but it does not work at all with BaseRenderTexture since its resource property is always null. How can I solve this? |
Beta Was this translation helpful? Give feedback.
Answered by
ivanpopelyshev
Apr 12, 2021
Replies: 1 comment
-
Use However, |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
KennethGomez
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Use
extract
in pixi to get data when you update the renderTexture, i hope its not often :)extract
uses webglreadPixels
operation.However,
readPixels
is a slow operation that should be done in the end of frame, that's why renderTexture's are not suited for hit detection.