Skip to content

Commit e4cddc3

Browse files
committed
fixed build of fyrox-impl on publishing
1 parent 8f70f0f commit e4cddc3

File tree

5 files changed

+28
-12
lines changed

5 files changed

+28
-12
lines changed

fyrox-impl/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ fyrox-graphics = { path = "../fyrox-graphics", version = "1.0.0-rc.1" }
2626
fyrox-graphics-gl = { path = "../fyrox-graphics-gl", version = "1.0.0-rc.1" }
2727
fyrox-texture = { path = "../fyrox-texture", version = "1.0.0-rc.1" }
2828
fyrox-autotile = { path = "../fyrox-autotile", version = "1.0.0-rc.1" }
29-
fyrox-material = { path = "../fyrox-material", version = "1.0.0-rc.1" }
29+
fyrox-material = { path = "../fyrox-material", version = "1.0.0-rc.2" }
3030
rapier2d = { version = "0.29", features = ["debug-render"] }
3131
rapier3d = { version = "0.29", features = ["debug-render"] }
3232
image = { version = "0.25.1", default-features = false, features = ["gif", "jpeg", "png", "tga", "tiff", "bmp"] }

fyrox-impl/src/renderer/resources.rs

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,15 @@ impl ShadersContainer {
173173
box_blur: RenderPassContainer::from_str(server, include_str!("shaders/blur.shader"))?,
174174
ui: RenderPassContainer::from_str(
175175
server,
176-
include_str!("../../../fyrox-material/src/shader/standard/widget.shader"),
176+
str::from_utf8(
177+
fyrox_material::shader::STANDARD_WIDGET
178+
.data_source
179+
.as_ref()
180+
.unwrap()
181+
.bytes
182+
.as_ref(),
183+
)
184+
.unwrap(),
177185
)?,
178186
environment_map_specular_convolution: RenderPassContainer::from_str(
179187
server,

fyrox-material/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "fyrox-material"
3-
version = "1.0.0-rc.1"
3+
version = "1.0.0-rc.2"
44
authors = ["Dmitry Stepanov <[email protected]>"]
55
edition = "2021"
66
license = "MIT"

fyrox-material/src/shader/mod.rs

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -909,7 +909,8 @@ impl ShaderResourceExtension for ShaderResource {
909909
}
910910

911911
lazy_static! {
912-
static ref STANDARD: BuiltInResource<Shader> = BuiltInResource::new(
912+
/// Standard shader.
913+
pub static ref STANDARD: BuiltInResource<Shader> = BuiltInResource::new(
913914
STANDARD_SHADER_NAME,
914915
embedded_data_source!("standard/standard.shader"),
915916
|data| {
@@ -920,7 +921,8 @@ lazy_static! {
920921
)
921922
}
922923
);
923-
static ref STANDARD_2D: BuiltInResource<Shader> = BuiltInResource::new(
924+
/// Standard 2D shader.
925+
pub static ref STANDARD_2D: BuiltInResource<Shader> = BuiltInResource::new(
924926
STANDARD_2D_SHADER_NAME,
925927
embedded_data_source!("standard/standard2d.shader"),
926928
|data| ShaderResource::new_ok(
@@ -929,7 +931,8 @@ lazy_static! {
929931
Shader::from_string_bytes(data).unwrap(),
930932
)
931933
);
932-
static ref STANDARD_PARTICLE_SYSTEM: BuiltInResource<Shader> = BuiltInResource::new(
934+
/// Standard particle system shader.
935+
pub static ref STANDARD_PARTICLE_SYSTEM: BuiltInResource<Shader> = BuiltInResource::new(
933936
STANDARD_PARTICLE_SYSTEM_SHADER_NAME,
934937
embedded_data_source!("standard/standard_particle_system.shader"),
935938
|data| ShaderResource::new_ok(
@@ -938,7 +941,8 @@ lazy_static! {
938941
Shader::from_string_bytes(data).unwrap(),
939942
)
940943
);
941-
static ref STANDARD_SPRITE: BuiltInResource<Shader> = BuiltInResource::new(
944+
/// Standard sprite shader.
945+
pub static ref STANDARD_SPRITE: BuiltInResource<Shader> = BuiltInResource::new(
942946
STANDARD_SPRITE_SHADER_NAME,
943947
embedded_data_source!("standard/standard_sprite.shader"),
944948
|data| ShaderResource::new_ok(
@@ -947,7 +951,8 @@ lazy_static! {
947951
Shader::from_string_bytes(data).unwrap(),
948952
)
949953
);
950-
static ref STANDARD_TERRAIN: BuiltInResource<Shader> = BuiltInResource::new(
954+
/// Standard terrain shader.
955+
pub static ref STANDARD_TERRAIN: BuiltInResource<Shader> = BuiltInResource::new(
951956
STANDARD_TERRAIN_SHADER_NAME,
952957
embedded_data_source!("standard/terrain.shader"),
953958
|data| {
@@ -958,7 +963,8 @@ lazy_static! {
958963
)
959964
}
960965
);
961-
static ref STANDARD_TILE: BuiltInResource<Shader> = BuiltInResource::new(
966+
/// Standard tile shader.
967+
pub static ref STANDARD_TILE: BuiltInResource<Shader> = BuiltInResource::new(
962968
STANDARD_TILE_SHADER_NAME,
963969
embedded_data_source!("standard/tile.shader"),
964970
|data| {
@@ -969,7 +975,8 @@ lazy_static! {
969975
)
970976
}
971977
);
972-
static ref STANDARD_TWOSIDES: BuiltInResource<Shader> = BuiltInResource::new(
978+
/// Standard two-sides shader.
979+
pub static ref STANDARD_TWOSIDES: BuiltInResource<Shader> = BuiltInResource::new(
973980
STANDARD_TWOSIDES_SHADER_NAME,
974981
embedded_data_source!("standard/standard-two-sides.shader"),
975982
|data| ShaderResource::new_ok(
@@ -978,7 +985,8 @@ lazy_static! {
978985
Shader::from_string_bytes(data).unwrap(),
979986
)
980987
);
981-
static ref STANDARD_WIDGET: BuiltInResource<Shader> = BuiltInResource::new(
988+
/// Standard widget shader.
989+
pub static ref STANDARD_WIDGET: BuiltInResource<Shader> = BuiltInResource::new(
982990
STANDARD_WIDGET_SHADER_NAME,
983991
embedded_data_source!("standard/widget.shader"),
984992
|data| ShaderResource::new_ok(

fyrox-ui/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ fyrox-resource = { path = "../fyrox-resource", version = "1.0.0-rc.1" }
2020
fyrox-texture = { path = "../fyrox-texture", version = "1.0.0-rc.1" }
2121
fyrox-graph = { path = "../fyrox-graph", version = "1.0.0-rc.1" }
2222
fyrox-animation = { path = "../fyrox-animation", version = "1.0.0-rc.1" }
23-
fyrox-material = { path = "../fyrox-material", version = "1.0.0-rc.1" }
23+
fyrox-material = { path = "../fyrox-material", version = "1.0.0-rc.2" }
2424
lazy_static = "1.4.0"
2525
copypasta = "0.10.1"
2626
fontdue = "0.9.2"

0 commit comments

Comments
 (0)