|
@@ -114,7 +114,7 @@ class FXEditor extends FileView {
|
|
var fxprops : hide.comp.PropsEditor;
|
|
var fxprops : hide.comp.PropsEditor;
|
|
|
|
|
|
var tools : hide.comp.Toolbar;
|
|
var tools : hide.comp.Toolbar;
|
|
- var light : h3d.scene.DirLight;
|
|
|
|
|
|
+ var light : h3d.scene.fwd.DirLight;
|
|
var lightDirection = new h3d.Vector( 1, 2, -4 );
|
|
var lightDirection = new h3d.Vector( 1, 2, -4 );
|
|
|
|
|
|
var scene(get, null): hide.comp.Scene;
|
|
var scene(get, null): hide.comp.Scene;
|
|
@@ -346,9 +346,9 @@ class FXEditor extends FileView {
|
|
}
|
|
}
|
|
|
|
|
|
public function onSceneReady() {
|
|
public function onSceneReady() {
|
|
- light = sceneEditor.scene.s3d.find(function(o) return Std.instance(o, h3d.scene.DirLight));
|
|
|
|
|
|
+ light = sceneEditor.scene.s3d.find(function(o) return Std.instance(o, h3d.scene.fwd.DirLight));
|
|
if( light == null ) {
|
|
if( light == null ) {
|
|
- light = new h3d.scene.DirLight(scene.s3d);
|
|
|
|
|
|
+ light = new h3d.scene.fwd.DirLight(scene.s3d);
|
|
light.enableSpecular = true;
|
|
light.enableSpecular = true;
|
|
} else
|
|
} else
|
|
light = null;
|
|
light = null;
|