Skip to content

Commit

Permalink
fix: 🐛 fix clearColor
Browse files Browse the repository at this point in the history
  • Loading branch information
Neo42 committed May 9, 2022
1 parent 0bab4c1 commit 747011e
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
Binary file modified .DS_Store
Binary file not shown.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
node_modules
public
public
.DS_Store
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ renderer.setSize(sizes.width, sizes.height)
renderer.setPixelRatio(Math.min(window.devicePixelRatio, 2))
renderer.outputEncoding = THREE.sRGBEncoding

debugObject.clearColor = '#201919'
debugObject.clearColor = '#191f20'
renderer.setClearColor(debugObject.clearColor)
gui.addColor(debugObject, 'clearColor').onChange(() => {
renderer.setClearColor(debugObject.clearColor)
Expand Down
2 changes: 1 addition & 1 deletion src/shaders/portal/fragment.glsl
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ void main() {
float outerGlow = distance(vUv, vec2(0.5)) * 5.0 - 1.4;
strength += outerGlow;

// Apply cool step
// Apply color step
strength += step(-0.2, strength) * 0.8;

// Clamp value from 0 to 1
Expand Down

1 comment on commit 747011e

@vercel
Copy link

@vercel vercel bot commented on 747011e May 9, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

three – ./

three-git-main-neo42.vercel.app
three-sandy.vercel.app
three-neo42.vercel.app

Please sign in to comment.