-
Notifications
You must be signed in to change notification settings - Fork 8
/
editor.vwf.yaml
118 lines (117 loc) · 3.83 KB
/
editor.vwf.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
# Copyright 2014 Lockheed Martin Corporation
#
# 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
properties:
backgroundColor: [ 10, 20, 30 ]
ambientColor: [ 70, 65, 65 ]
enableShadows: true
shadowMapCullFace: "back"
activeTool:
methods:
setActiveTool:
closeActiveTool:
events:
onSceneReady:
pointerClick:
pointerDown:
pointerMove:
pointerUp:
pointerOver:
pointerOut:
pointerWheel:
children:
sunLight:
extends: http://vwf.example.com/directionallight.vwf
properties:
color: [ 255, 245, 230 ]
translation: [ 2, 1, 16 ]
intensity: 0.55
castShadows: true
shadowDarkness: 0.6
shadowCameraBottom: -64
shadowCameraTop: 64
shadowCameraLeft: -64
shadowCameraRight: 64
shadowCameraFar: 24
shadowMapWidth: 2048
shadowMapHeight: 2048
shadowBias: -0.01
envLight:
extends: http://vwf.example.com/hemispherelight.vwf
properties:
translation: [ 0, 0, 100 ]
color: [ 255, 200, 175 ]
groundColor: [ 200, 160, 80 ]
intensity: 0.5
terrain:
extends: http://vwf.example.com/node3.vwf
source: assets/3d/Mars_Assets/terrain.dae
type: model/vnd.collada+xml
properties:
castShadows: true
receiveShadows: true
children:
material:
extends: source/shaders/mixMap.vwf
properties:
mixMap: "assets/3d/Mars_Assets/terrain_mixmap.png"
diffuseMaps:
- { "url": "assets/3d/Mars_Assets/level2_ground3_d.png", "wrapTexture": true }
- { "url": "assets/3d/Mars_Assets/dirt.png", "wrapTexture": true }
- { "url": "assets/3d/Mars_Assets/level2_ground1_d.png", "wrapTexture": true }
- { "url": "assets/3d/Mars_Assets/dark_dirt.png", "wrapTexture": true }
normalMaps:
- { "url": "assets/3d/Mars_Assets/level2_ground3_n.png", "wrapTexture": true }
- { "url": "assets/3d/Mars_Assets/dirt_n.png", "wrapTexture": true }
- { "url": "assets/3d/Mars_Assets/level2_ground1_n.png", "wrapTexture": true }
- { "url": "assets/3d/Mars_Assets/dark_dirt_n.png", "wrapTexture": true }
specularMaps:
- { "url": "assets/3d/Mars_Assets/level2_ground3_s.png", "wrapTexture": true }
- { "url": "assets/3d/Mars_Assets/dirt_s.png", "wrapTexture": true }
- { "url": "assets/3d/Mars_Assets/level2_ground1_s.png", "wrapTexture": true }
- { "url": "assets/3d/Mars_Assets/dark_dirt_s.png", "wrapTexture": true }
textureResolution: 128
gridInterval: 3
laserWidth: 0.1
laserStrength: 0.1
laserIntensity: 2
gridColor: 0xFFDDAA
gridVisible: 1
tilesVisible: 1
tileColor: 0x555555
tileMap:
tileMapOrigin:
tileMapSize:
environmentObjects:
extends: http://vwf.example.com/node3.vwf
source: assets/3d/Mars_Assets/mars_assets.dae
type: model/vnd.collada+xml
properties:
castShadows: true
receiveShadows: true
tilemapTool:
extends: editor/model/editorTool.vwf
properties:
lastDragTile$:
isDragging$: false
methods:
setTileMapUniforms:
updateTexture:
events:
tileMapped:
scripts:
- source: editor/model/tilemapTool.js
scripts:
- source: editor/model/editor.js