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

small trick to get cleaner glsl code inside c/cpp files #28

Open
questor opened this issue May 9, 2019 · 1 comment
Open

small trick to get cleaner glsl code inside c/cpp files #28

questor opened this issue May 9, 2019 · 1 comment
Assignees

Comments

@questor
Copy link

questor commented May 9, 2019

I just found this: https://emergent.unpythonic.net/01451504315 and think it's a really neat way to get cleaner shaders directly in cpp files... if it's not of interest to you just close this ticket.

@floooh
Copy link
Owner

floooh commented May 9, 2019

Nice :) Shame about the "#version xxx\n" line though. The sapp-samples will soon be converted to the shader compiler where the shader code will be stashed away in a geneated header, but I'll consider it for the other backend-specific samples. I'll keep the ticket open as reminder.

@floooh floooh self-assigned this May 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants