Selection shader (Colored)

My first shader.

It is just a cool selection shader I made (when placing something)

Shader code
shader_type spatial;
uniform float redmulti : hint_range(0.0, 1.0) = 1.0;
uniform float greenmulti : hint_range(0.0, 1.0) = 1.0;
uniform float bluemulti : hint_range(0.0, 1.0) = 1.0;

void fragment() {
	ALBEDO = vec3((1.0-(sin(TIME)*0.5))*redmulti,(1.0-(sin(TIME)*0.5))*greenmulti,(1.0-(sin(TIME)*0.5))*bluemulti);
	ALPHA = 0.4;
}
Tags
selection
The shader code and all code snippets in this post are under CC0 license and can be used freely without the author's permission. Images and videos, and assets depicted in those, do not fall under this license. For more info, see our License terms.

Related shaders

Selection Blur

Animated selection rectangle (Marching ants)

Rectangular selection box

guest

0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments