Skip to content
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

feat(sample): sample of geometry #116

Merged
merged 2 commits into from
May 10, 2023

Conversation

hellmor
Copy link
Collaborator

@hellmor hellmor commented May 8, 2023

Add sample about geometries

Add sample about geometries
@hellmor hellmor added the feature New feature or request label May 8, 2023
@hellmor hellmor added this to the 0.6 milestone May 8, 2023
private update() {
// update its vertex data over time
if (this.floorGeometry) {
let attribute = this.floorGeometry.getAttribute(VertexAttributeName.position);
Copy link
Collaborator

Choose a reason for hiding this comment

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

It's best to do water wave calculations here

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Please see line 60.
It's already look like a wave.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

image

after computeNormals

ComputeNormals after update vertex position
@X-OldGentleMan X-OldGentleMan merged commit 5eb40e6 into Orillusion:dev May 10, 2023
1 check passed
@hellmor hellmor deleted the sampleGeometry branch May 15, 2023 05:52
@lslzl3000 lslzl3000 mentioned this pull request Aug 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

None yet

3 participants