xdgl

所属分类:图形图像处理
开发工具:JavaScript
文件大小:0KB
下载次数:0
上传日期:2021-06-27 08:40:10
上 传 者sh-1993
说明:  WebGL中的更高维渲染,
(Higher-dimensional rendering in WebGL,)

文件列表:
LICENSE.md (1053, 2021-06-27)
index.html (220, 2021-06-27)
index.js (1689, 2021-06-27)
shaders/ (0, 2021-06-27)
shaders/fragment.glsl (98, 2021-06-27)
shaders/xdgl.glsl (4657, 2021-06-27)
style.css (40, 2021-06-27)
vector.js (1662, 2021-06-27)
webgl.js (4795, 2021-06-27)
xdgl.js (4761, 2021-06-27)

# xdgl Example implementation of higher dimensional rendering in [WebGL](https://www.khronos.org/webgl/). Online demo: [https://oliverkovacs.github.io/demo/xdgl/](https://oliverkovacs.github.io/demo/xdgl/) ## Explanation Transformation, scaling, rotation, and projection is done on the GPU with the `xdgl.glsl` vertex shader, enabling high performance. It can theoretically handle any shape in arbitrary high dimensions, however the JavaScript side of this implementation (`xdgl.js`) can currently only generate and draw hypercubes. Separate implementations could be developed, as long as they correctly pass data to the shader. Vertex, element and transform data are supplied to the vertex shader through textures, as OpenGL/WebGL limit the size of a single vertex attribute to 4. The dimensionality of the hypercube can be changed in `index.js`. `vector.js` and `webgl.js` contain helper functions not directly related to higher dimensions. ## Usage Clone this repository and serve the folder on your localhost. Open it in a browser that supports WebGL.   Author: [Oliver Kovacs](https://github.com/OliverKovacs) License: MIT

近期下载者

相关文件


收藏者