Beware brave traveler, this great read will make you think oh that's not so hard!
In the jungle of 3000+ lines spaghetti renderer-code you will be tangled in RenderTargets and concatenated ShaderCode with your boots in quicksands of BindGroups.
Only the noble get to see the light after fixing their struct alignment traps!! 10/10 though, can recommend to get caught up
The code appears to be here (about ~903 lines):
https://github.com/aosabook/500lines/tree/master/modeller/co...
"one bite everyone knows the rules"
Using a big library like OpenGL and then playing code golf seems at ends. Cool writeup but these always confuse me
Another great read is Daniel Hooper’s write up on his SDF 3D modeler ShapeUp.
https://news.ycombinator.com/item?id=40239164
It’s about 2k lines and was built in a week… but it uses raylib which is a fundamentally different task, but i still find it interesting.
Beware brave traveler, this great read will make you think oh that's not so hard!
In the jungle of 3000+ lines spaghetti renderer-code you will be tangled in RenderTargets and concatenated ShaderCode with your boots in quicksands of BindGroups.
Only the noble get to see the light after fixing their struct alignment traps!! 10/10 though, can recommend to get caught up