Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[examples] Added new shader example: shader_depth_texture #4861

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

luis605
Copy link
Contributor

@luis605 luis605 commented Mar 26, 2025

Some raylib users may find it useful, for post processing and shadows stuff, to have an example that renders the depth texture to screen.

@JeffM2501
Copy link
Contributor

This PR does not add the example to any build systems, it should include makefile additions and visual studio projects

@luis605
Copy link
Contributor Author

luis605 commented Mar 26, 2025

@JeffM2501 I have removed shaders_view_depth compilation when Android is specified and added the file to the example's Makefile.

@JeffM2501
Copy link
Contributor

What about the MSVC project? You should add the example to all the standard builds.

// Initialization
//--------------------------------------------------------------------------------------
const int screenWidth = 800;
const int screenHeight = 600;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note that all raylib examples are 800x450 pixels, also the screenshot, please, can you review it?

@raysan5 raysan5 changed the title Added new example - [shader] render depth texture [examples] Added new shader example: shader_depth_texture Mar 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants