[examples] Reviewed shader view depth

This commit is contained in:
luis605 2025-04-04 22:41:34 +01:00
parent 8ec52e3b25
commit 4960cc74e0
4 changed files with 55 additions and 20 deletions

View file

@ -52,6 +52,8 @@ int main(void)
// Load depth shader and get depth texture shader location
Shader depthShader = LoadShader(0, TextFormat("resources/shaders/glsl%i/depth.fs", GLSL_VERSION));
int depthLoc = GetShaderLocation(depthShader, "depthTexture");
int flipTextureLoc = GetShaderLocation(depthShader, "flipY");
SetShaderValue(depthShader, flipTextureLoc, (int[]){ 1 }, SHADER_UNIFORM_INT); // Flip Y texture
// Load models
Model cube = LoadModelFromMesh(GenMeshCube(1.0f, 1.0f, 1.0f));