Add back unused attributes (#85)

This commit is contained in:
Jasper Bekkers 2020-10-22 11:51:49 +02:00 committed by GitHub
parent 4c76d73243
commit 77d7129547
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -141,6 +141,7 @@ fn sky(dir: Vec3, sun_position: Vec3) -> Vec3 {
color.pow(1.0 / (1.2 + (1.2 * sunfade)))
}
#[allow(unused_attributes)]
#[spirv(entry = "fragment")]
pub fn main_fs(input: Input<Vec4>, mut output: Output<Vec4>) {
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))
}
#[allow(unused_attributes)]
#[spirv(entry = "vertex")]
pub fn main_vs(
in_pos: Input<Vec4>,