zaycev / bevy-magic-light-2d

Experiment with computing 2D shading, lighting and shadows with Bevy Engine
Apache License 2.0
427 stars 37 forks source link

Possible missing bevy feature in Cargo.toml #24

Closed ghashy closed 10 months ago

ghashy commented 11 months ago

Thanks for the update! I noticed that it won't compile in my project without bevy_pbr feature enabled in Cargo.toml:

2 | use bevy::pbr::{MAX_CASCADES_PER_LIGHT, MAX_DIRECTIONAL_LIGHTS};
  |           ^^^ could not find `pbr` in `bevy`

It is strange, because krypta example working without any issues..

and if someone uses bevy/dynamic_linking, crate-type = ["cdylib", "lib", "staticlib"] line in Cargo.toml causes this:

error: crate `bevy_dylib` required to be available in rlib format, but was not found in this form
zaycev commented 11 months ago

Thanks for reporting this. Seems like a small change, I will try to send a fix this week.

zaycev commented 10 months ago

Seems like #29 fixed it.