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

Per-node UBO population and per-frame cam state access #676

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

skalarproduktraum
Copy link
Member

@skalarproduktraum skalarproduktraum commented Feb 1, 2024

This PR introduces:

  • the PopulatesUBO interface, which enables node to define their own serialisation procedure, aka, how to translate a node's information into something accessible to shaders that goes beyond ShaderProperties
  • access to a given frame's camera state in the Vulkan renderer's render() and submitFrame() function.

@@ -48,7 +48,6 @@ open class DefaultNode(name: String = "Node") : Node, Networkable {
return true
}

override var nodeType = "Node"
Copy link
Contributor

@smlpt smlpt Feb 20, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will this cause any trouble in other parts of scenery that rely on this node type?
Or rather: will removing the property nodeType altogether result in any unexpected behavior in other parts of scenery?

}
}

var stereoEnabled = false
Copy link
Contributor

@smlpt smlpt Feb 20, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this false if it is a stereo camera?

Copy link
Contributor

@smlpt smlpt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, but maybe add a short documentation to the populate UBO classes?

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