mirror of
https://github.com/EmbarkStudios/rust-gpu.git
synced 2024-11-22 14:56:27 +00:00
Add back unused attributes (#85)
This commit is contained in:
parent
4c76d73243
commit
77d7129547
@ -141,6 +141,7 @@ fn sky(dir: Vec3, sun_position: Vec3) -> Vec3 {
|
|||||||
color.pow(1.0 / (1.2 + (1.2 * sunfade)))
|
color.pow(1.0 / (1.2 + (1.2 * sunfade)))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[allow(unused_attributes)]
|
||||||
#[spirv(entry = "fragment")]
|
#[spirv(entry = "fragment")]
|
||||||
pub fn main_fs(input: Input<Vec4>, mut output: Output<Vec4>) {
|
pub fn main_fs(input: Input<Vec4>, mut output: Output<Vec4>) {
|
||||||
let dir: Vec3 = input.load().truncate();
|
let dir: Vec3 = input.load().truncate();
|
||||||
@ -168,6 +169,7 @@ pub fn main_fs(input: Input<Vec4>, mut output: Output<Vec4>) {
|
|||||||
output.store(color.extend(0.0))
|
output.store(color.extend(0.0))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[allow(unused_attributes)]
|
||||||
#[spirv(entry = "vertex")]
|
#[spirv(entry = "vertex")]
|
||||||
pub fn main_vs(
|
pub fn main_vs(
|
||||||
in_pos: Input<Vec4>,
|
in_pos: Input<Vec4>,
|
||||||
|
Loading…
Reference in New Issue
Block a user