123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- # Copyright 2012 United States Government, as represented by the Secretary of Defense, Under
- # Secretary of Defense (Personnel & Readiness).
- #
- # Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
- # in compliance with the License. You may obtain a copy of the License at
- #
- # http://www.apache.org/licenses/LICENSE-2.0
- #
- # Unless required by applicable law or agreed to in writing, software distributed under the License
- # is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
- # or implied. See the License for the specific language governing permissions and limitations under
- # the License.
- ---
- 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 ];
- }
|