@@ -129,6 +129,7 @@ void Skybox::ApplySky(GPUContext* context, RenderContext& renderContext, const M
|
||||
material->SetParameterValue(TEXT("PanoramicTexture"), PanoramicTexture.Get(), false);
|
||||
material->SetParameterValue(TEXT("Color"), Color * Math::Exp2(Exposure), false);
|
||||
material->SetParameterValue(TEXT("IsPanoramic"), PanoramicTexture != nullptr, false);
|
||||
material->SetParameterValue(TEXT("RotationEuler"), _rotationEuler, false);
|
||||
material->Bind(bindParams);
|
||||
}
|
||||
}
|
||||
@@ -163,4 +164,5 @@ void Skybox::OnTransformChanged()
|
||||
|
||||
_box = BoundingBox(_transform.Translation);
|
||||
_sphere = BoundingSphere(_transform.Translation, 0.0f);
|
||||
_rotationEuler = GetOrientation().GetEuler() * DegreesToRadians;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user