support slim model

This commit is contained in:
yushijinhun 2017-08-30 20:26:04 +08:00
parent 02840ec6a4
commit 5d55407b46
No known key found for this signature in database
GPG Key ID: 5BC167F73EA558E4
7 changed files with 197 additions and 676 deletions

View File

@ -6,6 +6,7 @@ The code was originally created by [Kent Rasmussen](https://github.com/earthiver
# Features
* 1.8 Skins
* Capes
* Slim arms
# Dependencies
* [Three.js](https://github.com/mrdoob/three.js/)
@ -21,13 +22,11 @@ JS
```js
$(() => {
$("#skin_container").skinPreview3D({
skinUrl: 'img/Dinnerbone.png',
skinUrl: 'img/hatsune_miku.png',
capeUrl: 'img/cape.png',
slim: true,
width: 600,
height: 600
});
});
```
# TODOs
* Alex support (Slim arms).

View File

@ -2,7 +2,7 @@
<html>
<head>
<meta charset="utf-8">
<title>SkinPreview3D</title>
<title>skinpreview3d.js</title>
</head>
<body>
@ -14,8 +14,9 @@
<script>
$(function() {
$("#skin_container").skinPreview3D({
skinUrl: 'img/Dinnerbone.png',
skinUrl: 'img/hatsune_miku.png',
capeUrl: 'img/cape.png',
slim: true,
width: 600,
height: 600
});

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.3 KiB

After

Width:  |  Height:  |  Size: 3.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 689 B

BIN
img/hatsune_miku.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB

File diff suppressed because it is too large Load Diff