godotengine / godotengine/godot

Enabling Depth of Field (DOF) in the camera attributes of a WorldEnviorment or Camera3D prevents control shaders that use screen_texture from functioning

Open
#116,644 0 comments 0 reactions 0 assignees View on GitHub
bug topic:3d topic:rendering
Dominant language
C++
Stars
117k
Forks
26.8k
PR merge metrics
PR metrics pending

Description

### Tested versions

- Reproducible in: 4.6.1.stable, 4.6.0.stable, 4.7-dev1

### System information

SteamOS - Godot v4.7.dev1

### Issue description

Enabling near of far DOF in the camera attributes of the active camera3D or world environment disables screen texture shaders that otherwise correctly affect the 3D viewport
(Video of test project recorded in V4.6.1)

https://github.com/user-attachments/assets/1d658e97-b0ec-4572-a299-46f906168ab2

### Steps to reproduce

In the test project, remove/add the dof.tres camera attribute resource to the scene's camera3D to recreate it enabling/disabling the colorrect's blur shader

### Minimal reproduction project (MRP)

[test.zip](https://github.com/user-attachments/files/25474195/test.zip)

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.