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

カメラを切り替える #1

Closed
Tengu712 opened this issue Mar 7, 2023 · 2 comments
Closed

カメラを切り替える #1

Tengu712 opened this issue Mar 7, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@Tengu712
Copy link
Owner

Tengu712 commented Mar 7, 2023

所詮UI用の平行投影カメラとworld用の透視投影カメラの二つしかいらないので、uniform bufferを二つ作るのが良さそう。
uniform bufferの切り替えは、ModelData::paramかDescriptorSetで(どうせimage textureを切り替えるので)。

@Tengu712 Tengu712 added the enhancement New feature or request label Mar 7, 2023
@Tengu712
Copy link
Owner Author

Tengu712 commented Mar 8, 2023

一つのuniformに並べて、paramで切り替える。N個のimage textureのためにN個のdescriptor setを作る必要があるので、カメラ用にuniformを二つ作ると、2*N個のdescriptor setが必要で流石に無駄。

@Tengu712
Copy link
Owner Author

Tengu712 commented Mar 9, 2023

#4 で実装済。

@Tengu712 Tengu712 closed this as completed Mar 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant