Remove SCREEN_TEXTURE, DEPTH_TEXTURE, and NORMAL_ROUGHNESS_TEXTURE

in favour of texture hints
This commit is contained in:
clayjohn
2023-01-05 11:55:59 -08:00
parent d93b66ad4d
commit faea9f5c10
24 changed files with 260 additions and 112 deletions

View File

@ -9,8 +9,10 @@
[codeblock]
shader_type canvas_item;
uniform sampler2D screen_texture : hint_screen_texture, repeat_disable, filter_nearest;
void fragment() {
vec4 c = textureLod(SCREEN_TEXTURE, SCREEN_UV, 0.0);
vec4 c = textureLod(screen_texture, SCREEN_UV, 0.0);
if (c.a > 0.0001) {
c.rgb /= c.a;