設計資源有包庇

直接用Javascript實踐3D Render

怎麼說呢,這code簡潔到好變態。改天研究,無須GPU(即顯示卡)就可以Render 3D。

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

https://github.com/sinclairzx81/zero

發表迴響