ethereumdegen / bevy_mesh_terrain

MIT License
39 stars 5 forks source link

Unable to Run Basic Example - Shader #20

Closed bryvin closed 3 months ago

bryvin commented 3 months ago

Using a fresh copy of the repo the Basic example is unable to be ran.

error: expected global item ('struct', 'const', 'var', 'alias', ';', 'fn') or the end of the file, found 'https'
    ┌─ src/shaders/terrain.wgsl:253:2
    │
253 │  https://github.com/nicopap/bevy_mod_paramap/blob/main/src/parallax_map.wgsl
    │  ^^^^^ expected global item ('struct', 'const', 'var', 'alias', ';', 'fn') or the end of the file
    │
    = expected global item ('struct', 'const', 'var', 'alias', ';', 'fn') or the end of the file, found 'https'

PC Info

2024-04-27T20:50:19.793748Z  INFO bevy_diagnostic::system_information_diagnostics_plugin::internal: SystemInfo { os: "Linux 39 Fedora Linux", kernel: "6.8.6-200.fc39.x86_64", cpu: "Intel(R) Core(TM) i9-10850K CPU @ 3.60GHz", core_count: "10", memory: "31.3 GiB" }
ethereumdegen commented 3 months ago

sorry ! botched a comment. fixed

bryvin commented 3 months ago

Edit: Disregard you fixed it at the same time I replied

Found the problem..

In src/shaders/terrain.wgsl you accidentally forgot to copy out the line with the URL https://github.com/ethereumdegen/bevy_mesh_terrain/blob/0df1cdb27df3790437d7ceabc6007a04360bc7a5/src/shaders/terrain.wgsl#L253