|
@@ -5,19 +5,13 @@
|
|
|
<meta charset="utf-8">
|
|
|
<meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
|
|
|
<link type="text/css" rel="stylesheet" href="main.css">
|
|
|
- <style>
|
|
|
- #vt { display:none }
|
|
|
- #vt, #vt a { color:orange; }
|
|
|
- </style>
|
|
|
</head>
|
|
|
|
|
|
<body>
|
|
|
|
|
|
<div id="info">
|
|
|
- <a href="https://threejs.org" target="_blank" rel="noopener">three.js</a> - (<span id="description">normal + ao + displacement + environment</span>) map demo.<br />
|
|
|
+ <a href="https://threejs.org" target="_blank" rel="noopener">three.js</a> - (normal + ao + displacement + environment) map demo.<br />
|
|
|
ninja head from <a href="https://gpuopen.com/archive/gamescgi/amd-gpu-meshmapper/" target="_blank" rel="noopener">AMD GPU MeshMapper</a>
|
|
|
-
|
|
|
- <div id="vt">displacement mapping requires vertex textures</div>
|
|
|
</div>
|
|
|
|
|
|
<script type="module">
|
|
@@ -206,12 +200,6 @@
|
|
|
|
|
|
//
|
|
|
|
|
|
- var description = "normal + ao" + ( renderer.capabilities.vertexTextures ? " + displacement + environment" : " + <strike>displacement</strike>" );
|
|
|
- document.getElementById( "description" ).innerHTML = description;
|
|
|
- document.getElementById( "vt" ).style.display = renderer.capabilities.vertexTextures ? "none" : "block";
|
|
|
-
|
|
|
- //
|
|
|
-
|
|
|
stats = new Stats();
|
|
|
container.appendChild( stats.dom );
|
|
|
|