프로젝트
GitHub에서 보기
mattdesl/webgl-wireframes
소개
WebGL에서 스타일화된 와이어프레임 렌더링
창작 및 미디어측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 기록 수집 중
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
Originalwebgl-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:
npm install
npm start
Now open localhost:9966 to see it in your browser.
To build:
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.
관련 프로젝트 살펴보기
불러오는 중…
