|
@@ -322,7 +322,7 @@
|
|
|
|
|
|
gpuCompute = new GPUComputationRenderer( WIDTH, WIDTH, renderer );
|
|
|
|
|
|
- if ( isSafari() ) {
|
|
|
+ if ( renderer.capabilities.isWebGL2 === false ) {
|
|
|
|
|
|
gpuCompute.setDataType( THREE.HalfFloatType );
|
|
|
|
|
@@ -354,12 +354,6 @@
|
|
|
|
|
|
}
|
|
|
|
|
|
- function isSafari() {
|
|
|
-
|
|
|
- return !! navigator.userAgent.match( /Safari/i ) && ! navigator.userAgent.match( /Chrome/i );
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
function restartSimulation() {
|
|
|
|
|
|
const dtPosition = gpuCompute.createTexture();
|