route-graphics 1.31.1 → 1.36.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +10 -0
- package/dist/RouteGraphics.js +137 -137
- package/package.json +4 -3
package/README.md
CHANGED
|
@@ -42,6 +42,8 @@ await app.init({
|
|
|
42
42
|
width: 1280,
|
|
43
43
|
height: 720,
|
|
44
44
|
backgroundColor: 0x000000,
|
|
45
|
+
rendererPreference: "webgl",
|
|
46
|
+
rendererFallback: true,
|
|
45
47
|
plugins: {
|
|
46
48
|
elements: [textPlugin, rectPlugin, spritePlugin, containerPlugin],
|
|
47
49
|
animations: [tweenPlugin],
|
|
@@ -75,6 +77,12 @@ app.render({
|
|
|
75
77
|
});
|
|
76
78
|
```
|
|
77
79
|
|
|
80
|
+
`rendererPreference` accepts `"webgl"` or `"webgpu"`;
|
|
81
|
+
`rendererFallback: false` makes initialization fail instead of selecting the
|
|
82
|
+
other backend. The selected value is available as `app.rendererType`. Inline
|
|
83
|
+
shader effects always provide both GLSL and WGSL so the same state works on
|
|
84
|
+
either backend.
|
|
85
|
+
|
|
78
86
|
`createAssetBufferManager()` may keep image and video assets as direct source
|
|
79
87
|
URLs when possible, while audio and font assets remain buffer-backed.
|
|
80
88
|
|
|
@@ -128,12 +136,14 @@ For complete usage details, go to:
|
|
|
128
136
|
- [Getting Started](http://route-graphics.routevn.com/docs/introduction/getting-started/)
|
|
129
137
|
- [Assets & Loading](http://route-graphics.routevn.com/docs/guides/assets-loading/)
|
|
130
138
|
- [Events & Render Complete](http://route-graphics.routevn.com/docs/guides/events-render-complete/)
|
|
139
|
+
- [Shaders](http://route-graphics.routevn.com/docs/guides/shaders/)
|
|
131
140
|
- [Custom Plugins](http://route-graphics.routevn.com/docs/guides/custom-plugins/)
|
|
132
141
|
|
|
133
142
|
Design notes:
|
|
134
143
|
|
|
135
144
|
- [Audio Effects](./docs/audio-effects.md)
|
|
136
145
|
- [Command-Controlled Sound Playback](./docs/audio-playback-commands.md)
|
|
146
|
+
- [Animation Model](./docs/animation-model.md)
|
|
137
147
|
- [Shader Interface](./docs/shader-interface.md)
|
|
138
148
|
|
|
139
149
|
## Render CLI
|