Fix axis layout and implement click raytracing

This commit is contained in:
2021-07-30 22:41:05 +02:00
parent 4c2409dbd0
commit 02ba2bb95a
8 changed files with 167 additions and 98 deletions

View File

@@ -57,7 +57,7 @@ impl GameObject {
pub fn get_push_constants(&self) -> vs::ty::PushConstants {
vs::ty::PushConstants {
model: self.get_model_matrix().into(),
is_selected: if self.is_selected { 0 } else { 1 },
is_selected: if self.is_selected { 1 } else { 0 },
}
}