提交 2a334e08 编写于 作者: M Mr.doob

Credit where credit is due.

上级 fa9d346f
/**
* @author mr.doob / http://mrdoob.com/
*/
var Cube = function (width, height, depth) {
THREE.Geometry.call(this);
......
/**
* @author kile / http://kile.stravaganza.org/
*/
var Cylinder = function (numSegs, topRad, botRad, height, topOffset, botOffset) {
THREE.Geometry.call(this);
......
/**
* @author mr.doob / http://mrdoob.com/
*/
var Plane = function (width, height) {
THREE.Geometry.call(this);
......
/**
* @author mr.doob / http://mrdoob.com/
*/
var THREE = THREE || {}
/**
* @author mr.doob / http://mrdoob.com/
*/
THREE.Camera = function (x, y, z) {
this.position = new THREE.Vector3(x, y, z);
......
/**
* @author mr.doob / http://mrdoob.com/
*/
THREE.Color = function (hex) {
var _r, _g, _b, _a, _hex;
......
/**
* @author mr.doob / http://mrdoob.com/
*/
THREE.Face3 = function (a, b, c, uv, normal, color) {
this.a = a;
......
/**
* @author mr.doob / http://mrdoob.com/
*/
THREE.Face4 = function (a, b, c, d, uv, normal, color) {
this.a = a;
......
/**
* @author mr.doob / http://mrdoob.com/
*/
THREE.Geometry = function () {
this.vertices = [];
......
/**
* @author supereggbert / http://www.paulbrunt.co.uk/
* @author mr.doob / http://mrdoob.com/
*/
THREE.Matrix3 = function () {
this.n11 = 1; this.n12 = 0; this.n13 = 0;
......
/**
* @author supereggbert / http://www.paulbrunt.co.uk/
* @author mr.doob / http://mrdoob.com/
*/
THREE.Matrix4 = function () {
var x, y, z;
......
/**
* @author mr.doob / http://mrdoob.com/
*/
THREE.Vector2 = function (x, y) {
this.x = x || 0;
......
/**
* @author mr.doob / http://mrdoob.com/
*/
THREE.Vector3 = function (x, y, z) {
this.x = x || 0;
......
/**
* @author supereggbert / http://www.paulbrunt.co.uk/
*/
THREE.Vector4 = function (x, y, z, w) {
this.x = x || 0;
......
/**
* @author mr.doob / http://mrdoob.com/
*/
THREE.Vertex = function (position, normal) {
this.position = position || new THREE.Vector3();
......
/**
* @author mr.doob / http://mrdoob.com/
*/
THREE.ColorFillMaterial = function (hex, opacity) {
this.color = new THREE.Color( (opacity ? (opacity * 0xff) << 24 : 0xff000000) | hex );
......
/**
* @author mr.doob / http://mrdoob.com/
*/
THREE.ColorStrokeMaterial = function (hex, opacity, lineWidth) {
this.lineWidth = lineWidth || 1;
......
/**
* @author mr.doob / http://mrdoob.com/
*/
THREE.FaceColorFillMaterial = function () {
this.toString = function () {
......
/**
* @author mr.doob / http://mrdoob.com/
*/
THREE.FaceColorStrokeMaterial = function (lineWidth) {
this.lineWidth = lineWidth || 1;
......
/**
* @author mr.doob / http://mrdoob.com/
*/
THREE.Line = function (geometry, material) {
THREE.Object3D.call(this, material);
......
/**
* @author mr.doob / http://mrdoob.com/
*/
THREE.Mesh = function (geometry, material) {
THREE.Object3D.call(this, material);
......
/**
* @author mr.doob / http://mrdoob.com/
*/
THREE.Object3D = function (material) {
this.position = new THREE.Vector3(0, 0, 0);
......
/**
* @author mr.doob / http://mrdoob.com/
*/
THREE.Particle = function (material) {
THREE.Object3D.call(this, material);
......
/**
* @author mr.doob / http://mrdoob.com/
*/
THREE.CanvasRenderer = function () {
THREE.Renderer.call(this);
......
/**
* @author supereggbert / http://www.paulbrunt.co.uk/
*/
/* TODO: Refactoring */
var GLRenderer = Renderer.extend
......
/**
* @author mr.doob / http://mrdoob.com/
*/
THREE.Renderer = function() {
var face3Pool = [],
......
/**
* @author mr.doob / http://mrdoob.com/
*/
THREE.SVGRenderer = function () {
THREE.Renderer.call(this);
......
/**
* @author mr.doob / http://mrdoob.com/
*/
THREE.RenderableFace3 = function () {
this.v1 = new THREE.Vector2();
......
/**
* @author mr.doob / http://mrdoob.com/
*/
THREE.RenderableFace4 = function () {
this.v1 = new THREE.Vector2();
......
/**
* @author mr.doob / http://mrdoob.com/
*/
THREE.RenderableParticle = function () {
this.x;
......
/**
* @author mr.doob / http://mrdoob.com/
*/
THREE.Scene = function () {
this.objects = [];
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册