Closed alevys closed 6 years ago
Thanks a lot for creating the issue — I'll look into it!
Quick question: was there also another iOS device model on which it worked? Or did it basically show up on all your iOS test devices?
(Because I just tried my old DisplacementMapFilter example on a 6S, on which it worked fine. I did not try on a iPad 6 / Air 1 yet, though, and I didn't yet try you code specifically.)
Thanks in advance!
Error appears on the iPhone 6, iPhone 7 and iPad AIR
Got it!
The problem was that you had mapRepeat
activated, but didn't use a POT-texture. That caused an error in the shader. It doesn't show up in `baselineConstrained', because in that profile, all textures are POT-textures.
I just added a workaround to the code. mapRepeat
still doesn't work with this kind of texture, but the setting is now silently ignored if it's not supported.
To use mapRepeat
, create your texture like this:
Texture.fromBitmapData(perlinData, false, false, 1, "bgra", true);
Note the final true
parameter. That's called forcePotTexture
.
Now everything works fine. Thank you very much!
I'm happy to hear that! Cheers! :smile:
Hi! On the iPad AIR and iPhone 6 not working DisplacementMapFilter, if you select Starling.profile = "auto". If you select a profile Context3DProfile.BASELINE_CONSTRAINED, then everything works fine.