Use blocking load method for shaders

This commit is contained in:
Simon Lübeß
2024-08-22 23:25:17 +02:00
parent 66e62f42ec
commit 73a6cc0854
4 changed files with 7 additions and 6 deletions
+1 -1
View File
@@ -47,7 +47,7 @@ class SceneRenderer
});
_cameraTarget.[Friend]Identifier = "Camera Target";
_gammaCorrectEffect = Content.LoadAsset("Resources/Shaders/GammaCorrect.hlsl");
_gammaCorrectEffect = Content.LoadAsset("Resources/Shaders/GammaCorrect.hlsl", null, true);
}
/// Sets the size of the viewport into which the scene will be rendered.