Depth of field no unit accurate

This commit is contained in:
antopilo
2024-12-01 13:06:13 -05:00
parent 15051a4eb7
commit b6c3220797
6 changed files with 55 additions and 2 deletions

View File

@@ -625,6 +625,16 @@ namespace Nuake {
}
}
void EnvironmentDepthOfFieldSetFocusDistanceIcall(float distance)
{
Engine::GetCurrentScene()->GetEnvironment()->DOFFocalDepth = distance;
}
float EnvironmentDepthOfFieldGetFocusDistanceIcall()
{
return Engine::GetCurrentScene()->GetEnvironment()->DOFFocalDepth;
}
void Nuake::SceneNetAPI::RegisterMethods()
{
// Entity
@@ -680,6 +690,9 @@ namespace Nuake {
// Audio Emitter
RegisterMethod("AudioEmitterComponent.GetIsPlayingIcall", &AudioEmitterGetIsPlaying);
RegisterMethod("AudioEmitterComponent.SetIsPlayingIcall", &AudioEmitterSetIsPlaying);
RegisterMethod("Environment.SetFocusDistanceIcall", &EnvironmentDepthOfFieldSetFocusDistanceIcall);
RegisterMethod("Environment.GetFocusDistanceIcall", &EnvironmentDepthOfFieldGetFocusDistanceIcall);
}
}