Fix glTF light orientation
This commit is contained in:
parent
33bed5dd70
commit
5b100f3a63
@ -24,6 +24,7 @@ pub(crate) trait ConvertCameraCoordinates {
|
||||
/// - up: Y
|
||||
/// - right: X
|
||||
///
|
||||
/// The same convention is used for lights.
|
||||
/// See <https://registry.khronos.org/glTF/specs/2.0/glTF-2.0.html#view-matrix>
|
||||
fn convert_camera_coordinates(self) -> Self;
|
||||
}
|
||||
|
@ -45,7 +45,7 @@ pub(crate) fn node_transform(node: &Node, convert_coordinates: bool) -> Transfor
|
||||
},
|
||||
};
|
||||
if convert_coordinates {
|
||||
if node.camera().is_some() {
|
||||
if node.camera().is_some() || node.light().is_some() {
|
||||
transform.convert_camera_coordinates()
|
||||
} else {
|
||||
transform.convert_coordinates()
|
||||
|
Loading…
Reference in New Issue
Block a user