mirror of
https://github.com/raysan5/raylib.git
synced 2025-09-28 14:08:29 +00:00
REXM: Update examples
This commit is contained in:
@@ -58,7 +58,7 @@ int main(void)
|
||||
// Load custom render texture with writable depth texture buffer
|
||||
RenderTexture2D target = LoadRenderTextureDepthTex(screenWidth, screenHeight);
|
||||
|
||||
// Load depth writting shader
|
||||
// Load depth writing shader
|
||||
// NOTE: The shader inverts the depth buffer by writing into it by `gl_FragDepth = 1 - gl_FragCoord.z;`
|
||||
Shader shader = LoadShader(0, TextFormat("resources/shaders/glsl%i/depth_write.fs", GLSL_VERSION));
|
||||
SetTargetFPS(60); // Set our game to run at 60 frames-per-second
|
||||
|
Reference in New Issue
Block a user