diff options
author | Yuri Roubinsky <chaosus89@gmail.com> | 2021-10-21 19:12:43 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-21 19:12:43 +0300 |
commit | cacfb22365bfa1a6971720ef5c873a409d60bc44 (patch) | |
tree | 7c38d805598aa022990329ee54e9f7d3ed8c4614 | |
parent | fad7034e8b8275ce89424185c6ccee4de6aebd7f (diff) | |
parent | 9142df46b33dcd598b0b5092749344cd0d00b853 (diff) |
Merge pull request #54063 from Chaosus/shader_fix_spatial_samplers
-rw-r--r-- | servers/rendering/renderer_rd/forward_clustered/scene_shader_forward_clustered.cpp | 4 |
1 files changed, 4 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 a1c3481ed6..d05cfdc386 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 @@ -657,6 +657,10 @@ void SceneShaderForwardClustered::init(RendererStorageRD *p_storage, const Strin actions.render_mode_defines["specular_schlick_ggx"] = "#define SPECULAR_BLINN\n"; } + actions.custom_samplers["SCREEN_TEXTURE"] = "material_samplers[3]"; // linear filter with mipmaps + actions.custom_samplers["DEPTH_TEXTURE"] = "material_samplers[3]"; + actions.custom_samplers["NORMAL_ROUGHNESS_TEXTURE"] = "material_samplers[1]"; // linear filter + actions.render_mode_defines["specular_blinn"] = "#define SPECULAR_BLINN\n"; actions.render_mode_defines["specular_phong"] = "#define SPECULAR_PHONG\n"; actions.render_mode_defines["specular_toon"] = "#define SPECULAR_TOON\n"; |