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

Rendering: Const correct world data prevents Resources updates #140

Open
sp0lsh opened this issue Jun 30, 2018 · 0 comments
Open

Rendering: Const correct world data prevents Resources updates #140

sp0lsh opened this issue Jun 30, 2018 · 0 comments
Labels

Comments

@sp0lsh
Copy link
Contributor

sp0lsh commented Jun 30, 2018

Lets say we have code loading skybox panorama into TextureResource in SkyboxWorldComponent.
RenderingDevice then renders Cubemap from it and would update CubemapResource in SkyboxWorldComponent but can't if world is const.

For now we are saving cubemap and rest of such data in renderer once we prerender it at start. It would be nice if tools and resource loaders could use RenderingDevice to preprocess it.

It is worth taking care when we re going to design the life time of asset (raw, game asset, cooked asset, runtime asset). Now we load all assets raw with help of third party libraries and use it in runtime straight away.

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