百科.dev
全部条目AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
W

webgl-wireframes

> 编程语言
开源

WebGL 中的风格化线框渲染

752 stars0 点赞4 次浏览
访问官网GitHub

工具介绍

WebGL 中的风格化线框渲染

webgl-wireframes

This is the code for a November 2017 net magazine tutorial, Stylized Wireframe Rendering in WebGL. Check out the article (when it's released) for more details.

Stylized Wireframe Rendering in WebGL

The code here uses barycentric coordinates to create stylized wireframes in ThreeJS and WebGL. Some features of the code and its shaders include:

  • Alpha to Coverage for crisp alpha cutouts and depth testing with Multisample Anti-Aliasing
  • Thick and anti-aliased single-pass wireframe rendering
  • Basic support for animated line dashes
  • Inner edge removal to render quads instead of triangles
  • A few other effects, such as noise, tapered lines, dual strokes and backface coloring

Demo

Click here to see a live demo.

Usage

To build & run this project locally, first clone the repository, then use npm to install and run it:

bash
npm install
npm start

Now open localhost:9966 to see it in your browser.

To build:

bash
npm run build

Further Reading

The technique here is just one approach to wireframe rendering. You may find these other articles interesting:

  • Easy Wireframes with barycentric coordinates – Florian Bösch
  • Two Methods for Antialiased Wireframe Drawing with Hidden Line Removal
  • glsl-solid-wireframe – drawing wireframes and grids in a fragment shader by Ricky Reusser
  • Drawing Lines is Hard

License

MIT, see LICENSE.md for details.

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

JavaScript

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言