Device | OS | OS version | Browser | Browser version | WebGL | WebGL2 |
---|---|---|---|---|---|---|
Apple iPad 5th | iOS | 11.0.3 | Mobile Safari | 11.0 | X | |
Apple iPad Air 2 | iOS | 8.4 | Mobile Safari | 8.0 | X | |
Apple iPad Mini 3 | iOS | 8.1.2 | Mobile Safari | 8.0 | X | |
Apple iPad Pro | iOS | 11.2.1 | Mobile Safari | 11.0 | X | |
Apple iPhone 5S | iOS | 8.1.3 | Mobile Safari | 8.0 | X | |
Apple iPhone 6 Plus | iOS | 8.1 | Mobile Safari | 8.0 | X | |
Apple iPhone 6 | iOS | 8.1.3 | Mobile Safari | 8.0 | X | |
Apple iPhone 6S Plus | iOS | 9.0.1 | Mobile Safari | 9.0 | X |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//MIT License | |
//Copyright (c) 2021 Felix Westin | |
//Source: https://github.com/Fewes/MinimalAtmosphere | |
//Ported to GLSL by Marcin Ignac | |
#ifndef ATMOSPHERE_INCLUDED | |
#define ATMOSPHERE_INCLUDED | |
// ------------------------------------- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Unmarshals an Uint8Array as a signed 64-bit integer, big-endian. | |
function decodeInt64(data, i, allowImprecise) { | |
var v = 0, j = i + 7, m = 1; | |
if (data[i] & 128) { | |
// two's complement | |
for (var carry = 1; j >= i; --j, m *= 256) { | |
var b = (data[j] ^ 255) + carry; | |
carry = b >> 8; | |
v += (b & 255) * m; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// This is free and unencumbered software released into the public domain. | |
// Marshals a string to an Uint8Array. | |
function encodeUTF8(s) { | |
var i = 0, bytes = new Uint8Array(s.length * 4); | |
for (var ci = 0; ci != s.length; ci++) { | |
var c = s.charCodeAt(ci); | |
if (c < 128) { | |
bytes[i++] = c; | |
continue; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <io.h> | |
#include <sys/types.h> | |
#include <sys/stat.h> | |
#include <fcntl.h> | |
#include <stdlib.h> | |
#include <stdio.h> | |
#include <windows.h> | |
#include <Share.h> | |
#include <math.h> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <sys/stat.h> | |
#include <sys/mman.h> | |
#include <fcntl.h> | |
#include <unistd.h> | |
#include <stdlib.h> | |
#include <stdio.h> | |
struct xyz | |
{ | |
float x, y, z; |