|
| 1 | +<!DOCTYPE html> |
| 2 | +<html> |
| 3 | +<head> |
| 4 | + <meta charset="utf-8"> |
| 5 | + |
| 6 | + <title>Hexo</title> |
| 7 | + <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> |
| 8 | + |
| 9 | + |
| 10 | + |
| 11 | +<link rel="stylesheet" href="/css/style.css"> |
| 12 | + |
| 13 | + |
| 14 | + |
| 15 | +<link rel="stylesheet" href="/css/highlight.css"> |
| 16 | + |
| 17 | + |
| 18 | + <meta name="description" content="Unity WebGL Player | Red-Shift Red-Shift"> |
| 19 | +<meta property="og:type" content="article"> |
| 20 | +<meta property="og:title" content="Hexo"> |
| 21 | +<meta property="og:url" content="http://example.com/2023/02/16/Red-Shift%20h5%20-2/index/index.html"> |
| 22 | +<meta property="og:site_name" content="Hexo"> |
| 23 | +<meta property="og:description" content="Unity WebGL Player | Red-Shift Red-Shift"> |
| 24 | +<meta property="og:locale" content="en_US"> |
| 25 | +<meta property="article:published_time" content="2023-02-16T12:18:32.140Z"> |
| 26 | +<meta property="article:modified_time" content="2023-02-16T11:33:34.213Z"> |
| 27 | +<meta property="article:author" content="John Doe"> |
| 28 | +<meta name="twitter:card" content="summary"><meta name="generator" content="Hexo 6.3.0"></head> |
| 29 | + |
| 30 | +<body> |
| 31 | + <div id="wrapper"> |
| 32 | + <header id="header"> |
| 33 | + <h1 id="title"> |
| 34 | + <a href="/">Hexo</a> |
| 35 | + </h1> |
| 36 | + <nav> |
| 37 | + |
| 38 | + |
| 39 | + |
| 40 | + <a class="nav-link" href="/">Home</a> |
| 41 | + |
| 42 | + |
| 43 | + <span class="nav-spacer">×</span> |
| 44 | + |
| 45 | + <a class="nav-link" href="/archives">Archives</a> |
| 46 | + |
| 47 | + |
| 48 | + </nav> |
| 49 | +</header> |
| 50 | + |
| 51 | + <div id="content"> |
| 52 | + <article id="post-Red-Shift h5 -2/index" class="article article-type-post" itemprop="blogPost" itemscope> |
| 53 | + <div class="article-inner"> |
| 54 | + |
| 55 | + <div class="article-entry" itemprop="articleBody"> |
| 56 | + |
| 57 | + |
| 58 | + <!DOCTYPE html> |
| 59 | +<html lang="en-us"> |
| 60 | + <head> |
| 61 | + <meta charset="utf-8"> |
| 62 | + <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> |
| 63 | + <title>Unity WebGL Player | Red-Shift</title> |
| 64 | + <link rel="shortcut icon" href="TemplateData/favicon.ico"> |
| 65 | + <link rel="stylesheet" href="TemplateData/style.css"> |
| 66 | + </head> |
| 67 | + <body> |
| 68 | + <div id="unity-container" class="unity-desktop"> |
| 69 | + <canvas id="unity-canvas" width=960 height=600></canvas> |
| 70 | + <div id="unity-loading-bar"> |
| 71 | + <div id="unity-logo"></div> |
| 72 | + <div id="unity-progress-bar-empty"> |
| 73 | + <div id="unity-progress-bar-full"></div> |
| 74 | + </div> |
| 75 | + </div> |
| 76 | + <div id="unity-warning"> </div> |
| 77 | + <div id="unity-footer"> |
| 78 | + <div id="unity-webgl-logo"></div> |
| 79 | + <div id="unity-fullscreen-button"></div> |
| 80 | + <div id="unity-build-title">Red-Shift</div> |
| 81 | + </div> |
| 82 | + </div> |
| 83 | + <script> |
| 84 | + var container = document.querySelector("#unity-container"); |
| 85 | + var canvas = document.querySelector("#unity-canvas"); |
| 86 | + var loadingBar = document.querySelector("#unity-loading-bar"); |
| 87 | + var progressBarFull = document.querySelector("#unity-progress-bar-full"); |
| 88 | + var fullscreenButton = document.querySelector("#unity-fullscreen-button"); |
| 89 | + var warningBanner = document.querySelector("#unity-warning"); |
| 90 | + |
| 91 | + // Shows a temporary message banner/ribbon for a few seconds, or |
| 92 | + // a permanent error message on top of the canvas if type=='error'. |
| 93 | + // If type=='warning', a yellow highlight color is used. |
| 94 | + // Modify or remove this function to customize the visually presented |
| 95 | + // way that non-critical warnings and error messages are presented to the |
| 96 | + // user. |
| 97 | + function unityShowBanner(msg, type) { |
| 98 | + function updateBannerVisibility() { |
| 99 | + warningBanner.style.display = warningBanner.children.length ? 'block' : 'none'; |
| 100 | + } |
| 101 | + var div = document.createElement('div'); |
| 102 | + div.innerHTML = msg; |
| 103 | + warningBanner.appendChild(div); |
| 104 | + if (type == 'error') div.style = 'background: red; padding: 10px;'; |
| 105 | + else { |
| 106 | + if (type == 'warning') div.style = 'background: yellow; padding: 10px;'; |
| 107 | + setTimeout(function() { |
| 108 | + warningBanner.removeChild(div); |
| 109 | + updateBannerVisibility(); |
| 110 | + }, 5000); |
| 111 | + } |
| 112 | + updateBannerVisibility(); |
| 113 | + } |
| 114 | + |
| 115 | + var buildUrl = "Build"; |
| 116 | + var loaderUrl = buildUrl + "/Red-Shift h5 -2.loader.js"; |
| 117 | + var config = { |
| 118 | + dataUrl: buildUrl + "/Red-Shift h5 -2.data", |
| 119 | + frameworkUrl: buildUrl + "/Red-Shift h5 -2.framework.js", |
| 120 | + codeUrl: buildUrl + "/Red-Shift h5 -2.wasm", |
| 121 | + streamingAssetsUrl: "StreamingAssets", |
| 122 | + companyName: "Swing Trick", |
| 123 | + productName: "Red-Shift", |
| 124 | + productVersion: "1.0", |
| 125 | + showBanner: unityShowBanner, |
| 126 | + }; |
| 127 | + |
| 128 | + // By default Unity keeps WebGL canvas render target size matched with |
| 129 | + // the DOM size of the canvas element (scaled by window.devicePixelRatio) |
| 130 | + // Set this to false if you want to decouple this synchronization from |
| 131 | + // happening inside the engine, and you would instead like to size up |
| 132 | + // the canvas DOM size and WebGL render target sizes yourself. |
| 133 | + // config.matchWebGLToCanvasSize = false; |
| 134 | + |
| 135 | + if (/iPhone|iPad|iPod|Android/i.test(navigator.userAgent)) { |
| 136 | + container.className = "unity-mobile"; |
| 137 | + // Avoid draining fillrate performance on mobile devices, |
| 138 | + // and default/override low DPI mode on mobile browsers. |
| 139 | + config.devicePixelRatio = 1; |
| 140 | + unityShowBanner('WebGL builds are not supported on mobile devices.'); |
| 141 | + } else { |
| 142 | + canvas.style.width = "960px"; |
| 143 | + canvas.style.height = "600px"; |
| 144 | + } |
| 145 | + loadingBar.style.display = "block"; |
| 146 | + |
| 147 | + var script = document.createElement("script"); |
| 148 | + script.src = loaderUrl; |
| 149 | + script.onload = () => { |
| 150 | + createUnityInstance(canvas, config, (progress) => { |
| 151 | + progressBarFull.style.width = 100 * progress + "%"; |
| 152 | + }).then((unityInstance) => { |
| 153 | + loadingBar.style.display = "none"; |
| 154 | + fullscreenButton.onclick = () => { |
| 155 | + unityInstance.SetFullscreen(1); |
| 156 | + }; |
| 157 | + }).catch((message) => { |
| 158 | + alert(message); |
| 159 | + }); |
| 160 | + }; |
| 161 | + document.body.appendChild(script); |
| 162 | + </script> |
| 163 | + </body> |
| 164 | +</html> |
| 165 | + |
| 166 | + |
| 167 | + </div> |
| 168 | + |
| 169 | + |
| 170 | + |
| 171 | + </div> |
| 172 | +</article> |
| 173 | + |
| 174 | + |
| 175 | +<nav id="article-nav" class="article-nav"> |
| 176 | + |
| 177 | + <a href="/2023/02/16/Red-Shift%20h5%20-2/Build/Red-Shift%20h5%20-2.framework/" id="article-nav-newer" class="article-nav-link-wrap newer"> |
| 178 | + <strong class="article-nav-caption">Newer</strong> |
| 179 | + <div class="article-nav-title"> |
| 180 | + |
| 181 | + </div> |
| 182 | + </a> |
| 183 | + |
| 184 | + |
| 185 | + <a href="/2023/02/16/RedShift/" id="article-nav-older" class="article-nav-link-wrap older"> |
| 186 | + <strong class="article-nav-caption">Older</strong> |
| 187 | + <div class="article-nav-title"> |
| 188 | + |
| 189 | + </div> |
| 190 | + </a> |
| 191 | + |
| 192 | +</nav> |
| 193 | + |
| 194 | + |
| 195 | + |
| 196 | + |
| 197 | + |
| 198 | + |
| 199 | + </div> |
| 200 | + </div> |
| 201 | + |
| 202 | + |
| 203 | + |
| 204 | + |
| 205 | + |
| 206 | +<div id="settings-container"> |
| 207 | + <div id="dark-mode">dark</div> |
| 208 | + <div id="sans-font">sans</div> |
| 209 | +</div> |
| 210 | +<script type="text/javascript"> |
| 211 | +let d=document,r=d.documentElement.style,f=r.setProperty.bind(r),l=localStorage,s=l.getItem('s')||(window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches),n=l.getItem('n'),m=d.getElementById("dark-mode"),b=()=>{f('--bg-color','#fafafa');f('--code-bg-color','#f4f4f4');f('--text-color','#212121');f('--secondary-color','#808080');f('--tertiary-color','#b0b0b0');f('--link-color','#b5c8cf');f('--link-hover-color','#618794');f('--link-bg-color','#dae4e7');f('--selection-color','#dae4e7');m.innerHTML="dark"},c=()=>{f('--bg-color','#212121');f('--code-bg-color','#292929');f('--text-color','#fff');f('--secondary-color','#c0c0c0');f('--tertiary-color','#6e6e6e');f('--link-color','#4d6b75');f('--link-hover-color','#96b1bb');f('--link-bg-color','#5d828e');f('--selection-color','#acc1c9');m.innerHTML="light"},o=d.getElementById("sans-font"),e=()=>{f('--body-stack','"Lora", "Georgia", "Times New Roman", serif');o.innerHTML="sans"},g=()=>{f('--body-stack','"Lato", "Lucida Grande", "Lucida Sans Unicode", "Lucida Sans", "Verdana", sans-serif');o.innerHTML="serif"};m.onclick=()=>{if(s==2){s=1;l.setItem('s',s);c()}else{s=2;l.setItem('s',s);b()}};o.onclick=()=>{if(n==2){n=1;l.setItem('n',n);g()}else{n=2;l.setItem('n',n);e()}};if(!s){s=2;l.setItem('s',2)};if(s==1){c()};if(!n){n=2;l.setItem('n',2)};if(n==1){g()}; |
| 212 | +</script> |
| 213 | + |
| 214 | + |
| 215 | + |
| 216 | + |
| 217 | +</body> |
| 218 | +</html> |
0 commit comments