Summary Files Commits Branches @commit @diff @stats
path: root / Year 2 / Computer Graphics with WebGL / Project / blackhole.js
blob: 5093bc448642c743a50f13bba5fc057c4e91d82c (plain) (blame)
1
2
3
4
5
6
7
8
9
blackHolesBuf = [];

BlackHole = function(center, size) {
	this.rs = 2/3 * size;
	blackHolesBuf.push([center[0], center[1], center[2], this.rs]);
}
BlackHole.prototype.draw = function() {
	// Black holes are not "drawn"
}