big asset rework

This commit is contained in:
huaqo-games
2025-03-23 21:14:10 +01:00
parent 4eb407d286
commit 1c515eaeec
6 changed files with 140 additions and 83 deletions
+2 -2
View File
@@ -8,7 +8,7 @@ typedef struct {
float strength;
} PostProcessing;
PostProcessing CreatePostFX(const char* shaderPath, float strength){
PostProcessing CreatePostFX(const char* shaderPath){
PostProcessing postFX = {0};
postFX.shader = LoadShader(NULL, shaderPath);
@@ -17,7 +17,7 @@ PostProcessing CreatePostFX(const char* shaderPath, float strength){
return postFX;
}
postFX.strength = strength;
postFX.strength = 0.3f;
postFX.resolutionLoc = GetShaderLocation(postFX.shader, "resolution");
postFX.strengthLoc = GetShaderLocation(postFX.shader, "strength");
Vector2 resolution = { (float)GetScreenWidth(), (float)GetScreenHeight() };