-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New Gallery Component #328
Conversation
❌ Deploy Preview for hacknitr6 failed.
|
@HIMANSHU6001 Why is there inconsistency in your commit messages? |
"gatsby-plugin-manifest": "^5.14.0", | ||
"gatsby-plugin-netlify": "^5.1.1", | ||
"gatsby-plugin-offline": "^6.14.0", | ||
"gatsby-plugin-react-helmet": "^6.14.0", | ||
"gatsby-plugin-robots-txt": "^1.8.0", | ||
"gatsby-plugin-sharp": "^5.14.0", | ||
"gatsby-plugin-sitemap": "^6.14.0", | ||
"gatsby-plugin-styled-components": "^6.14.0", | ||
"gatsby-transformer-sharp": "^5.14.0", | ||
"maath": "^0.10.8", | ||
"react": "^18.0.0", | ||
"react-dom": "^18.0.0", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How are these changes related to the PR?
// Access the vertices of the geometry and modify their positions | ||
const positionAttribute = geometry.attributes.position; | ||
|
||
for (let i = 0; i < positionAttribute.count; i++) { | ||
const x = positionAttribute.getX(i); | ||
|
||
// Apply curvature only along the x-axis | ||
const z = curvature * x * x; | ||
|
||
positionAttribute.setZ(i, z); | ||
} | ||
|
||
// Update the geometry to reflect the changes | ||
geometry.computeVertexNormals(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove unnecessary comments.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Move this file to config/content
Your checklist for this pull request
🚨Please review the guidelines for contributing to this repository.
Description
Please describe your pull request.
❤️Thank you!
Post merge checklist