We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
4.2 steam
windows 11
I cant find single instance shader method. How i can use shader for 1 node specifically and not like this
just add 2 mesh instances and apply shader with that code for 1 of them
shader_type spatial; render_mode unshaded; uniform sampler2D SCREEN_TEXTURE : hint_screen_texture; uniform vec4 outline_color : source_color; uniform float outline_width = 1.0; void fragment() { vec4 pixelatedtext = texture(SCREEN_TEXTURE, SCREEN_UV); vec2 pixel_size = 1.0 / VIEWPORT_SIZE; ALBEDO = pixelatedtext.rgb; for(int y = -1*int(outline_width); y <= 1*int(outline_width); y++) for(int x = -1*int(outline_width); x <= 1*int(outline_width); x++) { vec4 tex = texture(SCREEN_TEXTURE, SCREEN_UV + vec2(float(x),float(y)) * pixel_size ); if(tex.a == 0.0) { ALBEDO = outline_color.rgb; ALPHA = 1.0; } } }
The text was updated successfully, but these errors were encountered:
This is not currently supported in Godot, as it currently doesn't have stencil buffer support or a similar render layer system.
Closing in favor of godotengine/godot-proposals#7174 and godotengine/godot-proposals#7916.
Sorry, something went wrong.
No branches or pull requests
Tested versions
4.2 steam
System information
windows 11
Issue description
I cant find single instance shader method. How i can use shader for 1 node specifically and not like this
Steps to reproduce
just add 2 mesh instances and apply shader with that code for 1 of them
Minimal reproduction project (MRP)
The text was updated successfully, but these errors were encountered: