How to set dof_blur_far_enabled on godot 4 ?
Asked Answered
D

3

0

How do I set this in the wordenvirnment camera ?

var world:WorldEnvironment = $WorldEnvironment

Documentation says it should be accessible on the word.environment... , no dot_blur_far_enable there, in the editor it is in the word.camera_attributes, also nothing there...
How do I change this property ? Also, is the documentation wrong ?

How to set dof_blur_far_enabled on godot 4 ?

Depositary answered 2/6, 2023 at 2:46 Comment(0)
B
0

Depositary It's in camera attributes. In the reference you need to look at the CameraAttributesPractical. It inherits from CameraAttributes which is, as documentation states, a pure virtual class.

Brownnose answered 8/6, 2023 at 12:21 Comment(0)
D
0

Nobody knows , or there is no way to do it ?
If nobody knows there is a problem in the documentation, if there is no way to do it, then its a bug in the engine...

Depositary answered 8/6, 2023 at 12:13 Comment(0)
B
0

Depositary It's in camera attributes. In the reference you need to look at the CameraAttributesPractical. It inherits from CameraAttributes which is, as documentation states, a pure virtual class.

Brownnose answered 8/6, 2023 at 12:21 Comment(0)
D
0

Brownnose
Thanks.
For anyone that wants details ;

	var x: CameraAttributesPractical = $"../WorldEnvironment".camera_attributes
	x.dof_blur_far_enabled = true
Depositary answered 8/6, 2023 at 18:17 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.