3D图形渲染管道、用JavaScript实现、在终端中运行

MasefieldUrsula 发布于13天前
0 条问题

Zero

A graphics pipeline implemented in JavaScript and rendered to the terminal. No GPU required.

3D graphics rendering pipeline. Implemented in JavaScript. Run in a terminal

# start the demo with npx

$ npx zero-demo

Overview

Zero is a small graphics demo that uses JavaScript to replicate the functionality of a GPU and uses the terminal to display its rendered output via nodejs' stdout. Zero was written for fun as well as to see how far one could reasonably push JavaScript performance. Rendering has been tested on Windows, OSX and Linux terminals.

This project and associative materials are offered as is to anyone who may find them of use.

Zero implements:

  • Programmable Vertex and Fragment shaders (in JavaScript)
  • Perspective Z-Correct Texture Mapping
  • Per Pixel Depth Buffering
  • Adaptive Resolution on Terminal resize (TTY only)
  • Matrix and Vector math libraries.
  • A Scene Graph
  • Support for Windows Command Prompt, Powershell and Linux Terminals

Licence MIT

Building Locally

Clone this project and run the following from the terminal.

$ npm install
$ npm run build
# run it
$ node index

查看原文: 3D graphics rendering pipeline. Implemented in JavaScript. Run in a terminal

  • smallgorilla
  • ticklishdog
  • whiteostrich
需要 登录 后回复方可回复, 如果你还没有账号你可以 注册 一个帐号。