跳到正文

正在自动登录…

← 返回项目列表

Noniv/web-ocean

海洋渲染

这是一个用WebGPU从零编写的实时海洋渲染器,无需引擎或渲染库,可在Chrome中直接打开单个HTML文件运行,适合对图形渲染和海洋模拟感兴趣的开发者或爱好者。

AI 中文解读 · 根据仓库描述与 README 生成 · 2026/10/17 11:46:12 · 查看原文

普通HTML应用与服务
累计 Stars
864
当前热度
1~7 天 · 小火
仓库创建时间
打开 GitHub ↗项目网站 ↗

选用指南

AI 根据 README 整理 · 2026/10/17 11:46:12

使用方式

可直接在浏览器中打开ocean.html或ocean.min.html运行,也可通过npm install和npm start从源码启动。

查看 README 依据
You need a recent Chrome with WebGPU and a reasonably capable GPU. On a laptop, force Chrome onto the dedicated GPU in the Windows graphics settings, or it will fall back to the integrated one. Open `ocean.html` directly in the browser. `ocean.min.html` is the same page minified (61 KB instead of 102 KB). Both are self-contained and work from `file://`. To run from source: ``` npm install npm start # serves http://localhost:8080/ ```
部署要求

需要支持WebGPU的Chrome浏览器和性能足够的GPU,在笔记本电脑上需强制使用独立显卡。

查看 README 依据
You need a recent Chrome with WebGPU and a reasonably capable GPU. On a laptop, force Chrome onto the dedicated GPU in the Windows graphics settings, or it will fall back to the integrated one. Open `ocean.html` directly in the browser. `ocean.min.html` is the same page minified (61 KB instead of 102 KB). Both are self-contained and work from `file://`. To run from source: ``` npm install npm start # serves http://localhost:8080/ ```
已知限制

场景仅限开阔海洋,无海岸线、冲浪或水中物体;云层为两层平面而非体积云;远水比明亮地平线天空略暗。

查看 README 依据
At 2560 by 1440 on an RTX 5070 Ti, the GPU takes about 6 to 8 ms per frame, measured while other programs were also using the GPU. The HUD shows FPS and GPU time when the browser supports `timestamp-query`. The per-frame code reuses preallocated typed arrays and descriptors, so the garbage collector has almost nothing to do. The only recurring allocations are the objects WebGPU itself requires, such as the swap-chain view and command buffers. ## Known limitations - Far water is still somewhat darker than the bright horizon sky above it.
- The water is tuned toward turbid coastal water. The "Water turbidity" slider gives darker, bluer deep water when turned down. - The scene is open ocean only. There is no shoreline, surf, or objects in the water. - Clouds are two flat layers, not volumetric. ## How it was made

README

正在加载 README…

收录信息

仓库创建时间
2026/10/17 07:49:53
首次达标收录
2026/10/17 11:41:02
统计更新时间
2026/10/22 19:00:54

按创建时长与累计 Stars 判断等级。首次达标收录后,即使未达当前门槛仍保留;累计 Stars 和仓库状态会定期更新。确认只有 README 及辅助文件的仓库会停止公开。

模型评估

普通加权总分 3.4 / 5

新颖度
3.8
实用价值
2.2
成熟度
4.0
实质含量
3.8

由 Jev 模型根据仓库描述与 README 评估,2026/10/17 11:41:02 生成。评分仅供参考,不是代码、安全或许可证审查;热度等级另按创建时长与累计 Stars 计算。

仓库信息

最近推送
2026/10/17 08:39:56
许可证标识
MIT
Fork 数
134
当前状态
未归档

收录记录

按创建时长与累计 Stars 首次收录:小火
首次发现项目