摘要: 通过研究 Godot Scons 来掌握 Scons 在大型项目中的应用 在 Godot 的 SCons 构建系统中,为了提高编译效率(增量编译)和管理依赖,不会把成千上万个 .cpp 文件直接丢给链接器,而是先分模块编译成中间产物,最后再把所有 .a 链接成最终的可执行文件(在 WASM 中就是 阅读全文
posted @ 2026-03-29 16:55 tommao9925 阅读(4) 评论(0) 推荐(0)
摘要: Scons 基础 Scons 踩坑 Scons 在使用 时,Emscripten 的时候 需要将目标后缀改为 .html,只有输出名为 .html 时,Emscripten 才会处理 shell-file 并生成网页 通过显示配置内存和堆栈大小可以解决许多问题 在 Windows 下使用 Scons 阅读全文
posted @ 2026-03-21 17:22 tommao9925 阅读(4) 评论(0) 推荐(0)
摘要: PBR 理论 https://zhuanlan.zhihu.com/p/392837412 https://zhuanlan.zhihu.com/p/364932774 纯金属材质是没有漫反射的,只受到镜面反射的影响 非金属材质的光照是光线原本的颜色,而金属材质反射的光线带有材质自身的颜色 在相同粗 阅读全文
posted @ 2026-02-28 17:37 tommao9925 阅读(3) 评论(0) 推荐(0)
摘要: AAA BBB MVP 矩阵(三维) \[Local → 世界坐标 → 相机坐标 → Clip -> NDC → 屏幕坐标 \]M 模型变换 模型矩阵是缩放、旋转、平移的矩阵乘积,变换顺序为:先缩放 → 再旋转 → 最后平移 \[M=T \ast R \ast S \]\[ T = \begin{b 阅读全文
posted @ 2026-02-15 14:35 tommao9925 阅读(5) 评论(0) 推荐(0)
摘要: Godot 4.3: Vertex Animation Instancing Tutorial https://www.youtube.com/watch?v=IBY1cdlpGXo https://docs.godotengine.org/en/latest/tutorials/performan 阅读全文
posted @ 2026-02-01 21:37 tommao9925 阅读(10) 评论(0) 推荐(0)
摘要: 初始化环境 OpenGL(GLAD)需先初始化 GLFW 和 GLAD 才能调用 OpenGL 函数,绘制图形到窗口上 int main() { // glfw: initialize and configure glfwInit(); glfwWindowHint(GLFW_CONTEXT_VER 阅读全文
posted @ 2026-01-25 15:14 tommao9925 阅读(2) 评论(0) 推荐(0)
摘要: Godot windows 上使用的是 Windows API 编程模型(也称为 Win32 API 编程) Win32 API 编程 LRESULT CALLBACK WndProc(HWND, UINT, WPARAM, LPARAM); int WINAPI WinMain(HINSTANCE 阅读全文
posted @ 2026-01-18 11:54 tommao9925 阅读(10) 评论(0) 推荐(0)
摘要: Webview 使用静态网页 https://github.com/crper/vscode-webview-vite-vue-boilerplate/tree/main 如何打包所有文件到一个index.js 和 index.css css和js需要打包成单独文件 // path: webview 阅读全文
posted @ 2026-01-11 14:16 tommao9925 阅读(11) 评论(0) 推荐(0)
摘要: https://fqzhanghao.github.io/post/guan-yu-android-webviewclient-he-webchromeclient/ 阅读全文
posted @ 2026-01-02 11:27 tommao9925 阅读(80) 评论(0) 推荐(0)
摘要: https://www.d2school.com/lesson?sn=b5822e7a711ba96da7962e23e0518e54#article-toc-1_1 准备 开发包下载 webview 暂未进入 msys2 的仓库,需到 github https://github.com/webvi 阅读全文
posted @ 2025-12-21 19:18 tommao9925 阅读(6) 评论(0) 推荐(0)