bevyengine / bevyengine/bevy

Enable inverting culling for each Cameras

Open
#7,168 0 comments 1 reaction 0 assignees View on GitHub
A-Rendering C-Feature
Dominant language
Rust
Stars
48.2k
Forks
4.8k
Avg merge
3d 22h
Merged PRs (30d)
161

Description

## What problem does this solve or what need does it fill?

I would like to be able to invert the culling setting for each cameras, like Unity's GL.invertCulling API.
[GL.invertCulling API](https://docs.unity3d.com/2022.2/Documentation/ScriptReference/GL-invertCulling.html)

## Additional context
I have implemented a custom projection matrix using the `CameraProjection` trait to flip the camera left and right, but I am having trouble getting the object to render correctly due to the culling setting.

Reversing the left and right sides of the object will also flip the object's back and front sides together.

Of course, this can be handled by flipping the `side` properties of each objects' materials together, but it would be nice to be able to change them all at once in the camera settings.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.