@@ -77,19 +77,25 @@ var Layer3D = new Class({
7777 * @type {Phaser.GameObjects.Layer3DCamera }
7878 * @since 3.50.0
7979 */
80- this . camera = new Layer3DCamera ( 45 , 0 , 0 , - 10 , 0.01 , 1000 ) ;
80+ this . camera = new Layer3DCamera ( this , 45 , 0 , 0 , - 10 , 0.01 , 1000 ) ;
8181
8282 /**
83- * TODO
83+ * An ambient light source for the entire Layer3D scene and all models it is rendering.
84+ *
85+ * It is created at a position of 0, -100, 0 with full ambient, diffuse and specular
86+ * values. You can change all of these by using the methods and properties
87+ * available on the `Layer3DLight` class.
8488 *
8589 * @name Phaser.GameObjects.Layer3D#light
8690 * @type {Phaser.GameObjects.Layer3DLight }
8791 * @since 3.50.0
8892 */
89- this . light = new Layer3DLight ( ) ;
93+ this . light = new Layer3DLight ( this , 0 , - 100 , 0 ) ;
9094
9195 /**
92- * TODO
96+ * The color of the fog.
97+ *
98+ * By default it is 0,0,0, which is black.
9399 *
94100 * @name Phaser.GameObjects.Layer3D#fogColor
95101 * @type {Phaser.Display.RGB }
@@ -98,7 +104,7 @@ var Layer3D = new Class({
98104 this . fogColor = new RGB ( ) ;
99105
100106 /**
101- * TODO
107+ * The minimum distance from which fog starts to affect objects closer than it.
102108 *
103109 * @name Phaser.GameObjects.Layer3D#fogNear
104110 * @type {number }
@@ -107,7 +113,7 @@ var Layer3D = new Class({
107113 this . fogNear = 0 ;
108114
109115 /**
110- * TODO
116+ * The maximum distance from which fog starts to affect objects further than it.
111117 *
112118 * @name Phaser.GameObjects.Layer3D#fogFar
113119 * @type {number }
0 commit comments