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

Boilerplate from ts version #1

Open
wants to merge 34 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 8 commits
Commits
Show all changes
34 commits
Select commit Hold shift click to select a range
65ff0db
get bolilerplate for loading caterfoil app
tiye Dec 22, 2024
0964147
first working demo with axis
tiye Dec 22, 2024
5c069ba
fix usage of group
tiye Dec 22, 2024
92fe8e1
random fixes from coderabbit
tiye Dec 22, 2024
96df7c3
split out lib part
tiye Dec 22, 2024
f5b1f19
include quaternion code
tiye Dec 22, 2024
be97bcd
render quaternion fractals
tiye Dec 23, 2024
7623ddd
split quaternion to library
tiye Dec 24, 2024
16dfaf9
trying with fractal tree in quaternion
tiye Dec 25, 2024
430d927
an experiment on curve
tiye Dec 26, 2024
c88d425
move vertexes to caterfoil lib
tiye Dec 28, 2024
a40d749
use Quaternion instead of Point4D
tiye Dec 28, 2024
134638c
cleanup cakes
tiye Dec 28, 2024
9bb5b91
use shader from ts lib; restructure several ffi
tiye Dec 28, 2024
f83032a
use alias for some types
tiye Dec 28, 2024
124ca43
encode some default colors
tiye Dec 28, 2024
bb0e9f5
expose type on vertex data; export alpha on color
tiye Dec 28, 2024
2d434a8
reduce noise with utilities
tiye Dec 28, 2024
2727799
add quaternion multiply example
tiye Dec 28, 2024
cf017dc
attempt work on Retained Atom
tiye Dec 29, 2024
b2a9053
enable states retaining logic
tiye Dec 29, 2024
84fbf6c
get hyper cube demo
tiye Dec 29, 2024
192dfc9
simplify definition of object
tiye Dec 29, 2024
b8d9d97
options to connect storage
tiye Dec 29, 2024
4c5ad68
refine demos in quat product
tiye Dec 29, 2024
fb26028
refine params of demos
tiye Dec 29, 2024
c71123a
refine demos; fix js in vite build
tiye Dec 29, 2024
75c823b
render some cubes
tiye Jan 1, 2025
d380c78
get custom shader for cubes
tiye Jan 1, 2025
2633fa4
control rendering with tab param
tiye Jan 2, 2025
8649007
a demo of prime walk
tiye Jan 2, 2025
76ca870
upgrade deps to fix line width issue
tiye Jan 3, 2025
10faf51
list options on README
tiye Jan 3, 2025
f052aec
a demo of tesselation on sphere
tiye Jan 4, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 2,4 @@
calcit.cirru -diff linguist-generated
yarn.lock -diff linguist-generated
LICENSE -diff linguist-generated
src/main/shader-trangle.mbt -diff linguist-generated
Copy link

Choose a reason for hiding this comment

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

💡 Codebase verification

⚠️ Potential issue

Fix typo in shader file path: 'shader-trangle.mbt' should be 'shader-triangle.mbt'

The verification confirms that the correct file name in the repository is src/main/shader-triangle.mbt, while the .gitattributes entry incorrectly uses src/main/shader-trangle.mbt. This typo needs to be fixed to ensure proper Git attributes are applied to the shader file.

🔗 Analysis chain

Fix typo in shader file path

There appears to be a typo in the file path: shader-trangle.mbt should be shader-triangle.mbt.

Let's verify the correct shader file name:

🏁 Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Check for the existence of both possible file names
fd -t f "shader-tr(i)?angle\.mbt$" src/main/

Length of output: 75

202 changes: 202 additions & 0 deletions .mooncakes/tiye/quaternion/LICENSE

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

9 changes: 9 additions & 0 deletions .mooncakes/tiye/quaternion/README.md
Original file line number Diff line number Diff line change
@@ -0,0 1,9 @@
# Quaternion Library for MoonBit

MoonBit does not have `num_traits::Float` so this library is only using `Float`(i.e.`f32`).

```bash
moon add tiye/quaternion
```

Find docs on Mooncaches.
Copy link

Choose a reason for hiding this comment

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

🧹 Nitpick (assertive)

Add usage details.
The README provides a basic overview of adding the library. Consider including fuller example usage, any relevant precision caveats, and a link to the test cases for advanced reference.

10 changes: 10 additions & 0 deletions .mooncakes/tiye/quaternion/moon.mod.json
Original file line number Diff line number Diff line change
@@ -0,0 1,10 @@
{
"name": "tiye/quaternion",
"version": "0.0.1",
"readme": "README.md",
"repository": "https://github.com/WebGPU-Art/quaternion",
"license": "Apache-2.0",
"keywords": ["math", "quaternion"],
"description": "Quaternion math library",
"source": "src"
}
1 change: 1 addition & 0 deletions .mooncakes/tiye/quaternion/src/lib/moon.pkg.json
Original file line number Diff line number Diff line change
@@ -0,0 1 @@
{}
Loading