+4

Simple 3D Metal

This simple shader gives a metallic look to your 3D meshes! Just adjust the shader parameters if you want a different color, roughness, or a shinier look.

Shader code
shader_type spatial;
render_mode specular_schlick_ggx;

uniform vec4 ColorUniform : hint_color;
uniform float HowShiny = 2;
uniform float Roughness = 0.2;



void vertex() {
// Output:0

}

void fragment() {
// ColorUniform:4
	vec3 n_out4p0 = ColorUniform.rgb;
	float n_out4p1 = ColorUniform.a;

// ScalarUniform:2
	float n_out2p0 = HowShiny;

// ScalarUniform:3
	float n_out3p0 = Roughness;

// Output:0
	ALBEDO = n_out4p0;
	METALLIC = n_out2p0;
	ROUGHNESS = n_out3p0;

}

void light() {
// Output:0

}
Tags
Gold, Iron, Metal, Shiny
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.

More from SamWise

Simple 3D Glass

Related shaders

Simple 2d transition

Simple 2D dissolve

Simple Blur

guest
0 Comments
Inline Feedbacks
View all comments