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

If I don't want to use IBL and just want to use skybox, how should I modify the code #4

Open
Ahaenhhhh opened this issue Mar 10, 2022 · 2 comments
Labels

Comments

@Ahaenhhhh
Copy link

If I don't want to use IBL and just want to use skybox, how should I modify the code

@RogyDev
Copy link
Owner

RogyDev commented Mar 10, 2022

If you mean a normal cubemap skybox (6 textures) then the engine currently doesn't have that, I think its better do it myself since the renderer code is a bit different then the one in the repository and I'm updating it soon anyway.

If you really want to modify the code, you will have to make your own "SkyboxCube" class thats loads the shader and the textures and renderers them...etc and then use it from the renderer class in the "Renderer::RenderScene" function, though I don't encourage you to do that :)

@Ahaenhhhh
Copy link
Author

If I want to import the model from the outside, the model itself has texture mapping, and I changed the model.cpp and mesh.cpp, I'd like to know render.cpp how should be changed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants