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

engine: support setDepthFunc for MaterialInstance #7004

Merged
merged 3 commits into from
Jul 31, 2023

Conversation

mackong
Copy link
Contributor

@mackong mackong commented Jul 27, 2023

No description provided.

@@ -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; }
Copy link
Contributor

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

Copy link
Collaborator

@romainguy romainguy left a 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.

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");
Copy link
Contributor

Choose a reason for hiding this comment

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

Line length

@mackong mackong force-pushed the feat/expose-set-depthfunc branch 2 times, most recently from 534a645 to 6ee5a14 Compare July 28, 2023 03:14
@pixelflinger pixelflinger merged commit 549c582 into google:main Jul 31, 2023
8 checks passed
@mackong mackong deleted the feat/expose-set-depthfunc branch July 31, 2023 23:32
plepers pushed a commit to plepers/filament that referenced this pull request Dec 9, 2023
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.

5 participants