Skip to content

Added model shader sample #38

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

Merged
merged 2 commits into from
Jan 1, 2020
Merged

Added model shader sample #38

merged 2 commits into from
Jan 1, 2020

Conversation

Nachasic
Copy link
Contributor

Added an example for attaching shaders to models.

Even, as it turned out, you don't need an explicit Model::set_shader() function to attach shaders to models, the whole process is still a bit cumbersome. I wonder if we could make it a tiny bit more streamlined.

Also, I have no idea how to properly unload unsafely unwrapped Texture2D with mipmaps, and yaw-pitch sample doesn't say it either. Having to deal with unsafe code in the main still kinda bugs me the wrong way.

Also, rl.set_camera_mode(&camera, CameraMode::CAMERA_FREE); doesn't make camera orbit around the target for some reason :/

@Dacode45 Dacode45 merged commit 9ae4caf into deltaphc:master Jan 1, 2020
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