mirror of
https://github.com/raysan5/raylib.git
synced 2025-11-17 15:51:19 +00:00
[examples] Reviewed shader view depth
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user