Skip to content
Snippets Groups Projects
Commit 900cdd37 authored by jonschi's avatar jonschi
Browse files

add dist version

parent 49924d62
No related branches found
No related tags found
No related merge requests found
node_modules
threejs-car/dist
This diff is collapsed.
This diff is collapsed.
<!doctype html><html lang="en"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>Car ThreeJS</title><script defer="defer" src="bundle.c2faa1a5e6ef15d01030.js"></script><link href="main.css" rel="stylesheet"></head><body><canvas class="webgl"></canvas></body></html>
\ No newline at end of file
* {
margin: 0;
padding: 0;
}
html, body {
height: 100vh;
font-family: 'Poppins';
background: rgb(24, 24, 24);
}
body {
overflow-x: hidden;
}
.webgl {
position: fixed;
top: 0;
left: 0;
outline: none;
}
/*# sourceMappingURL=main.css.map*/
\ No newline at end of file
{"version":3,"sources":["webpack:///./src/style.css"],"names":[],"mappings":"AAAA;IACI,SAAS;IACT,UAAU;AACd;;AAEA;IACI,aAAa;IACb,sBAAsB;IACtB,2BAA2B;AAC/B;;AAEA;IACI,kBAAkB;AACtB;;AAEA;IACI,eAAe;IACf,MAAM;IACN,OAAO;IACP,aAAa;AACjB","file":"main.css","sourcesContent":["* {\n margin: 0;\n padding: 0;\n}\n\nhtml, body {\n height: 100vh;\n font-family: 'Poppins';\n background: rgb(24, 24, 24);\n}\n\nbody {\n overflow-x: hidden;\n}\n\n.webgl {\n position: fixed;\n top: 0;\n left: 0;\n outline: none;\n}\n"],"sourceRoot":""}
\ No newline at end of file
threejs-car/dist/textures/metalScratchedNormal.jpeg

20.1 KiB

threejs-car/dist/textures/tireNormalMap.jpg

146 KiB

......@@ -6,8 +6,9 @@ import { Material, RGBA_ASTC_10x10_Format } from 'three'
// Loading
const textureLoader = new THREE.TextureLoader()
const tireTexture = textureLoader.load('/textures/tireNormalMap.jpg')
const metalTexture = textureLoader.load('/textures/metalScratchedNormal.jpeg')
textureLoader.setCrossOrigin("Access-Control-Allow-Origin")
const tireTexture = textureLoader.load('textures/tireNormalMap.jpg')
const metalTexture = textureLoader.load('textures/metalScratchedNormal.jpeg')
// Canvas
const canvas = document.querySelector('canvas.webgl')
......
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment