1
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

前は動いていたが、最近のiPhoneで動いていないglslに巡り合ったときの対処

Posted at

precision mediump float;に指定していた場合、highpに。

以前は、iPhoneでもmediumpにしてもhighp扱いで通っていたのでないかと。

Mugen先生による回答:
https://discourse.threejs.org/t/precision-highp-float-mediump-on-ios14-iphone14/23847/3

コードは下記がベター?Androidが本当に大丈夫かは未確認。

# ifdef GL_FRAGMENT_PRECISION_HIGH
  precision highp float;
# else
  precision mediump float;
# endif

予算がCSSと変わらないかそれ以下のわりにはリスクが高いWebGLですが、
環境の差異はひとりで埋めがたいので環境別情報が増えてほしいところです。

1
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?