diff options
author | Bastiaan Olij <mux213@gmail.com> | 2023-01-15 16:07:59 +1100 |
---|---|---|
committer | Bastiaan Olij <mux213@gmail.com> | 2023-01-25 13:35:01 +1100 |
commit | 85c478e170a40bc471fa2e0dec377b237e0a69b3 (patch) | |
tree | cad2888012e6a7e37c8845c984eae9d272a6ae14 /servers/rendering/renderer_rd/forward_clustered | |
parent | eaf306e0b15e4283883f06bf903b05711a4dbfe8 (diff) |
Make screen texture and depth texture work in Multiview
Diffstat (limited to 'servers/rendering/renderer_rd/forward_clustered')
-rw-r--r-- | servers/rendering/renderer_rd/forward_clustered/scene_shader_forward_clustered.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/servers/rendering/renderer_rd/forward_clustered/scene_shader_forward_clustered.cpp b/servers/rendering/renderer_rd/forward_clustered/scene_shader_forward_clustered.cpp index 412406c0b4..2aaea4288b 100644 --- a/servers/rendering/renderer_rd/forward_clustered/scene_shader_forward_clustered.cpp +++ b/servers/rendering/renderer_rd/forward_clustered/scene_shader_forward_clustered.cpp @@ -717,6 +717,8 @@ void SceneShaderForwardClustered::init(const String p_defines) { actions.global_buffer_array_variable = "global_shader_uniforms.data"; actions.instance_uniform_index_variable = "instances.data[instance_index_interp].instance_uniforms_ofs"; + actions.check_multiview_samplers = true; // make sure we check sampling multiview textures + compiler.initialize(actions); } |