blob: 50e7edbc2c8b1aa663d47fa4bfb530eb9140c6d5 (
plain) (
blame)
1
2
3
4
5
6
7
8
|
BlackHole = function(center, size) {
this.boundary = new Sphere(center, size);
this.rs = 2/3 * size;
}
BlackHole.prototype.draw = function() {
gl.vertexAttrib4fv(aSphere, [this.boundary.center[0], this.boundary.center[1], this.boundary.center[2], this.rs]);
this.boundary.draw();
}
|