Skip to content

Commit

Permalink
Release v1.0.2
Browse files Browse the repository at this point in the history
- Update README
- Update a Logo 3D
  • Loading branch information
LynX39 committed May 26, 2022
1 parent d69813e commit 12d39d9
Show file tree
Hide file tree
Showing 10 changed files with 16 additions and 22 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!-- [![Banner](static/moongooseCursor.jpg)](https://smth.it) -->
[![Banner](static/logo3D.png)](https://smth.it)

# Logo 3d

Expand All @@ -9,6 +9,7 @@ The component auto-creates a div tag and injects a canvas in a WebGL context wit

The 3d rendered scene serve by an Orthographic Camera, Alpha background WebGLRenderer and a 3D Model loaded by GLTF Loader.

[![Banner](static/logo3D.gif)](https://smth.it)
# Usage

For use a Lib inject in a header the bundle script
Expand Down
27 changes: 10 additions & 17 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,27 +9,20 @@

<body style="margin: 0px; padding: 0px;">

<div style="
width: 100%;
height: 100vh;
background-image: url('https://w0.peakpx.com/wallpaper/1021/361/HD-wallpaper-tango-music-entertainment-passion-dance-couplemen-couple-women.jpg');
background-repeat: none;
background-size: cover;
background-position: center center;
">

<logo-3d
<div>

<logo-3d
id="logo-3d-example-id"
glb-url="./public/Logo.glb"
glb-url="./public/logo.glb"
rotation-speed="0.01"
camera-frustum="3.614"
camera-position="0 3.47831 5.05579"
camera-rotation="-0.35 0 0"
camera-frustum="0.414"
camera-position="0 0.3 1.5"
camera-rotation="-0.2 0 0"
ambient-light-color="#eeeeee"
ambient-light-intensity="1"
ambient-light-intensity="0.1"
directional-light-color="#eeeeee"
directional-light-intensity="2"
style="width: 500px; height: 500px;"
directional-light-intensity="1"
style="width: 1024px; height: 1024px;"
></logo-3d>

</div>
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "logo-3d",
"version": "1.0.1",
"version": "1.0.2",
"description": "3D Logo Animation",
"main": "index.js",
"scripts": {
Expand All @@ -14,7 +14,7 @@
"3d"
],
"author": "Michael Musso <[email protected]>",
"license": "LICENCE",
"license": "MIT",
"devDependencies": {
"@types/three": "^0.140.0",
"@vxna/optimize-three-webpack-plugin": "^5.1.3",
Expand Down
Binary file removed public/Logo.glb
Binary file not shown.
Binary file removed public/Wall.jpg
Binary file not shown.
Binary file added public/logo.glb
Binary file not shown.
2 changes: 1 addition & 1 deletion src/version.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const VERSION = "1.0.1";
export const VERSION = "1.0.2";
Binary file added static/logo3D.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/logo3D.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 12d39d9

Please sign in to comment.