Skip to content

Conversation

@Eideren
Copy link
Collaborator

@Eideren Eideren commented Aug 16, 2024

PR Details

Provides the ability for users to set custom depth testing functions per material for special effects
image
Here, a sphere clipped into another sphere by using the Greater depth function
image
image
This is often used for bullet impacts, selections in RTS, previews in level editors ...

Related Issue

None afaict.

Types of changes

  • Docs change / refactoring / dependency upgrade
  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist

  • My change requires a change to the documentation.
  • I have added tests to cover my changes.
  • All new and existing tests passed.
  • I have built and run the editor to try this change out.

@Eideren Eideren changed the title [Graphics] Custom Depth Test Function for Materials feat: Custom Depth Test Function for Materials Aug 16, 2024
Copy link
Contributor

@Doprez Doprez left a comment

Choose a reason for hiding this comment

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

This is an exciting addition, this could be used to improve https://github.com/profan/XenkoByteSized?tab=readme-ov-file#xenkobytesizedproceduralmeshsubdividedplanemesh with some visual feedback.

I don't see any concerns other than a few small typos.

@Eideren Eideren merged commit 9bde7c7 into stride3d:master Oct 1, 2024
Eideren added a commit to Eideren/xenko that referenced this pull request Oct 2, 2024
* [Graphics] Custom Depth Test Function for Materials

* Fix typo

(cherry picked from commit 9bde7c7)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants