123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- ---
- extends: http://vwf.example.com/scene.vwf
- children:
- plane:
- extends: plane.vwf
- scripts:
- - |
- this.initialize = function() {
- var initNode = function( nd ) {
- if ( Object.getPrototypeOf( nd ).children ) {
- Object.getPrototypeOf( nd ).children.forEach( function( child ) {
- this.children.create( child.name, { extends: child.id }, function( newNode ) {
- initNode( newNode );
- } );
- }, nd );
- }
- };
- initNode( this );
- } //@ sourceURL=plane.initialize.vwf
- sceneCenter:
- extends: http://vwf.example.com/node3.vwf
- dir1:
- extends: http://vwf.example.com/directionallight.vwf
- properties:
- distance: 2000
- intensity: 0.9
- color: [ 255, 255, 255 ]
- position: [ 0, -1, 0 ]
- rotation: [ 0, 0, 1, 90 ]
- scripts:
- - |
- this.initialize = function(){
- this.camera.translation = [ 0, -30, 0 ];
- this.dir1.translation = [ 0, -100, 0 ];
- }
|