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

Update shaders_deferred_render example for GLES3 #4714

Closed
wants to merge 18 commits into from

Conversation

MikiZX1
Copy link
Contributor

@MikiZX1 MikiZX1 commented Jan 20, 2025

Updated shaders_deferred_render example for GLES3 with updated glsl shaders with 300 es version

@MikiZX1
Copy link
Contributor Author

MikiZX1 commented Jan 20, 2025

Hi Ray,
sorry if you are receiving this PR twice, I've done it I think two days ago but it did not seem to have been received on your end (I don't see it in the list of PRs for raylib open or closed ones)?
again, sorry if this is doubled now. this version also changes the visuals of the example.
sorry to give you more work... I'm trying to learn this Github but ..well...
Thanks for everything and wishing you a good one!

@MikiZX1
Copy link
Contributor Author

MikiZX1 commented Jan 20, 2025

compiles with -sFULL_ES3=1 support:
emcc -o shaders/shaders_deferred_render.html shaders/shaders_deferred_render.c -Wall -std=c99 -D_DEFAULT_SOURCE -Wno-missing-braces -Wunused-result -O3 -I. -I../src -I../src/external -L. -L../src -L../src -sTOTAL_MEMORY=134217728 -sFORCE_FILESYSTEM=1 -sEXPORTED_RUNTIME_METHODS=ccall -sMINIFY_HTML=0 -sUSE_GLFW=3 -sFULL_ES3=1 -sASYNCIFY --shell-file ../src/shell.html ../src/libraylib.web.a -DPLATFORM_WEB --preload-file ./shaders/resources/shaders/glsl100/gbuffer.vs@resources/shaders/glsl100/gbuffer.vs --preload-file ./shaders/resources/shaders/glsl100/gbuffer.fs@resources/shaders/glsl100/gbuffer.fs --preload-file ./shaders/resources/shaders/glsl100/deferred_shading.vs@resources/shaders/glsl100/deferred_shading.vs --preload-file ./shaders/resources/shaders/glsl100/deferred_shading.fs@resources/shaders/glsl100/deferred_shading.fs

@raysan5
Copy link
Owner

raysan5 commented Jan 20, 2025

@MikiZX1 I'm afraid I'm adding those changes, it will require a specific directory for glsl300es shaders and it won't be aligned with other examples.

@raysan5 raysan5 closed this Jan 20, 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.

2 participants