Skip to content

Adds Lens Flare Sample KNI projects#1

Open
squarebananas wants to merge 2 commits intokniEngine:mainfrom
squarebananas:LensFlare
Open

Adds Lens Flare Sample KNI projects#1
squarebananas wants to merge 2 commits intokniEngine:mainfrom
squarebananas:LensFlare

Conversation

@squarebananas
Copy link
Copy Markdown

Adds the Lens Flare Sample KNI projects for testing the occlusion query implementation on each platform.

Further PRs for adding/fixing OcclusionQuery support on Android & BlazorGL to follow.

In advance, the following adjustment has been made to LensFlareComponent.cs for handling GLES & WebGL differences:

// For GLES and WebGL occlusion queries, the exact pixel count is not available.
// Instead, a result of 1 indicates that one or more pixels are visible.
// Therefore the querySize (also used to calculate the occlusionAlpha value) is reduced accordingly.
if (GraphicsDevice.Adapter.Backend == GraphicsBackend.GLES
 || GraphicsDevice.Adapter.Backend == GraphicsBackend.WebGL)
    querySize = 1;

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.

1 participant