-
Notifications
You must be signed in to change notification settings - Fork 0
/
02-Texture.html
40 lines (40 loc) · 1.16 KB
/
02-Texture.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Tekstur</title>
<script src="https://aframe.io/releases/1.0.4/aframe.min.js"></script>
</head>
<body>
<a-scene>
<a-asset>
<img src="textures/Brick/basecolor.jpg" id="base">
<img src="textures/Brick/normal.jpg" id="normal">
<img src="textures/Brick/height.png" id="height">
</a-asset>
<a-box
src="#base"
repeat="2 2"
normal-map="#normal"
normal-texture-repeat="2 2"
segments-height="100"
segments-width="100"
segments-depth="100"
displacement-map="#height"
displacement-bias=0
displacement-scale=0.1
displacement-texture-repeat="2 2"
position="-1 1.5 -2"
></a-box>
<a-sphere
src="#base"
repeat="2 2"
normal-map="#normal"
normal-texture-repeat="2 2"
position="1 1.5 -2"
radius="0.5"
></a-sphere>
</a-scene>
</body>
</html>