-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
engine: support setDepthFunc for MaterialInstance #7004
Conversation
@@ -101,6 +101,8 @@ class FMaterialInstance : public MaterialInstance { | |||
|
|||
backend::RasterState::DepthFunc getDepthFunc() const noexcept { return mDepthFunc; } | |||
|
|||
void setDepthFunc(backend::RasterState::DepthFunc depthFunc) noexcept { mDepthFunc = depthFunc; } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
longer than 100 chars I think
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This needs to be added to the Java API as well.
samples/depthtesting.cpp
Outdated
auto gui = [&app](Engine* engine, View* view) { | ||
int depthFuncSelection = (int) app.depthFunc; | ||
ImGui::Combo("Depth Function", &depthFuncSelection, | ||
"Less or equal\0Greater or equal\0Strictly less than\0Strictly greater than\0Equal\0Not equal\0Always\0Never\0\0"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Line length
534a645
to
6ee5a14
Compare
6ee5a14
to
bfef186
Compare
Co-authored-by: Mathias Agopian <mathias@google.com>
No description provided.