mirror of
https://github.com/bevyengine/bevy
synced 2024-11-10 07:04:33 +00:00
webgl feature renamed to webgl2 (#9370)
Addresses: ```sh $ cargo build --release --example lighting --target wasm32-unknown-unknown --features webgl error: none of the selected packages contains these features: webgl, did you mean: webgl2, webp? ``` # Objective - When following the instructions for the web examples. - Document clearly the generated file `./target/wasm_example.js`, since it didn't appear on `git grep` (missing extension) ## Solution - Follow the feature rename on the docs. --------- Signed-off-by: Seb Ospina <kraige@gmail.com>
This commit is contained in:
parent
ac8f36743e
commit
e489dcc9e8
2 changed files with 4 additions and 4 deletions
|
@ -210,7 +210,7 @@ Following is an example for `lighting`. For other examples, change the `lighting
|
|||
following commands.
|
||||
|
||||
```sh
|
||||
cargo build --release --example lighting --target wasm32-unknown-unknown --features webgl
|
||||
cargo build --release --example lighting --target wasm32-unknown-unknown
|
||||
wasm-bindgen --out-name wasm_example \
|
||||
--out-dir examples/wasm/target \
|
||||
--target web target/wasm32-unknown-unknown/release/examples/lighting.wasm
|
||||
|
@ -218,7 +218,7 @@ wasm-bindgen --out-name wasm_example \
|
|||
|
||||
The first command will build the example for the wasm target, creating a binary. Then,
|
||||
[wasm-bindgen-cli](https://rustwasm.github.io/wasm-bindgen/reference/cli.html) is used to create
|
||||
javascript bindings to this wasm file, which can be loaded using this
|
||||
javascript bindings to this wasm file in the output file `examples/wasm/target/wasm_example.js`, which can be loaded using this
|
||||
[example HTML file](./wasm/index.html).
|
||||
|
||||
Then serve `examples/wasm` directory to browser. i.e.
|
||||
|
|
|
@ -507,7 +507,7 @@ Following is an example for `lighting`. For other examples, change the `lighting
|
|||
following commands.
|
||||
|
||||
```sh
|
||||
cargo build --release --example lighting --target wasm32-unknown-unknown --features webgl
|
||||
cargo build --release --example lighting --target wasm32-unknown-unknown
|
||||
wasm-bindgen --out-name wasm_example \
|
||||
--out-dir examples/wasm/target \
|
||||
--target web target/wasm32-unknown-unknown/release/examples/lighting.wasm
|
||||
|
@ -515,7 +515,7 @@ wasm-bindgen --out-name wasm_example \
|
|||
|
||||
The first command will build the example for the wasm target, creating a binary. Then,
|
||||
[wasm-bindgen-cli](https://rustwasm.github.io/wasm-bindgen/reference/cli.html) is used to create
|
||||
javascript bindings to this wasm file, which can be loaded using this
|
||||
javascript bindings to this wasm file in the output file `examples/wasm/target/wasm_example.js`, which can be loaded using this
|
||||
[example HTML file](./wasm/index.html).
|
||||
|
||||
Then serve `examples/wasm` directory to browser. i.e.
|
||||
|
|
Loading…
Reference in a new issue