bevyengine / bevyengine/bevy

unable to render inside of cube using double_sided and cull_mode

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

Description

## Bevy version

0.9.1

## \[Optional\] Relevant system information

1.67.0, windows 10, 3090
INFO bevy_render::renderer: AdapterInfo { name: "NVIDIA GeForce RTX 3090", vendor: 4318, device: 8708, device_type: DiscreteGpu, driver: "NVIDIA", driver_info: "527.37", backend: Vulkan }

## What you did

created a cube with size 1x1 and increased the meshes size every second
```let mut material = StandardMaterial {base_color: Color::rgb(1.0,0.0, 0.0), double_sided: true, cull_mode: None, ..Default::default()};```
i've tried using cull mode none, back and front

## What went wrong
the faces are no longer rendered once the camera goes inside the cube, possibly an issue with frustum culling?

https://user-images.githubusercontent.com/60718883/218086199-8f604ad6-d0a3-4d90-87d0-0c778284ff04.mp4

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.