Skip to content

Commit 9cc59d7

Browse files
.
1 parent c017a81 commit 9cc59d7

2 files changed

Lines changed: 54 additions & 1 deletion

File tree

test/model.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,8 @@
136136

137137

138138
window.modelRender.render([{
139-
blockstate: (location.hash.substr(1) || "stone")
139+
blockstate: (location.hash.substr(1) || "red_mushroom_block"),
140+
variant:"north=true,south=false"
140141
}], function () {
141142
setTimeout(function () {
142143
console.log(window.modelRender.toImage(false));

test/skin.html

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<title>MineRender - quick, easy, interactive Minecraft renders - Skins, Blocks, Items & more</title>
5+
<link id="favicon" rel="icon" href="https://minerender.org/favicon.ico"/>
6+
<style>
7+
body, html {
8+
overflow-x: hidden;
9+
overflow-y: hidden;
10+
}
11+
12+
body {
13+
margin: 0;
14+
}
15+
16+
canvas {
17+
width: 100%;
18+
height: 100%;
19+
20+
/* Drop Shadow */
21+
-webkit-filter: drop-shadow(5px 5px 5px #222);
22+
filter: drop-shadow(5px 5px 5px #222);
23+
}
24+
</style>
25+
26+
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js" integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4=" crossorigin="anonymous"></script>
27+
</head>
28+
<body>
29+
30+
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js" integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4=" crossorigin="anonymous"></script>
31+
<script src="https://cdnjs.cloudflare.com/ajax/libs/three.js/94/three.min.js" integrity="sha256-NGC9JEuTWN4GhTj091wctgjzftr+8WNDmw0H8J5YPYE=" crossorigin="anonymous"></script>
32+
<script src="../dist/skin.min.js"></script>
33+
<script>
34+
const skinRender = new SkinRender({
35+
controls: {
36+
zoom: false,
37+
pan: false
38+
},
39+
canvas: {
40+
width: 200,
41+
height: 400
42+
}
43+
}, document.getElementById("player_model"));
44+
45+
skinRender.render({
46+
username: "_Kanin",
47+
cape: "minecraft"
48+
});
49+
50+
</script>
51+
</body>
52+
</html>

0 commit comments

Comments
 (0)