41 lines
765 B
HTML
41 lines
765 B
HTML
|
<!DOCTYPE html>
|
||
|
<html>
|
||
|
|
||
|
<head>
|
||
|
<meta charset="utf-8">
|
||
|
<title>skinview3d</title>
|
||
|
<link href="https://fonts.googleapis.com/css?family=Archivo+Black" rel="stylesheet">
|
||
|
<style>
|
||
|
html,
|
||
|
body {
|
||
|
margin: 0;
|
||
|
padding: 0;
|
||
|
background-color: #1e1e1e;
|
||
|
}
|
||
|
</style>
|
||
|
</head>
|
||
|
|
||
|
<body>
|
||
|
|
||
|
<div id="skin_container"></div>
|
||
|
|
||
|
<script type="text/javascript" src="../bundles/skinview3d.bundle.js"></script>
|
||
|
|
||
|
<script>
|
||
|
let skinViewer = new skinview3d.SkinViewer(document.getElementById("skin_container"), {
|
||
|
width: 400,
|
||
|
height: 300,
|
||
|
skin: "./1_8_texturemap_redux.png"
|
||
|
});
|
||
|
|
||
|
let control = new skinview3d.createOrbitControls(skinViewer);
|
||
|
skinViewer.animations.add(skinview3d.WalkingAnimation);
|
||
|
skinViewer.animations.speed = 1.5;
|
||
|
|
||
|
</script>
|
||
|
|
||
|
|
||
|
</body>
|
||
|
|
||
|
</html>
|