OldSchoolDiffuseShader

This shader is inspired by old games (early 2000s and earlier) and does not use PBR. It features simple diffuse lighting based on the Lambert model, giving objects a classic, low-poly look with minimal computational requirements. Ideal for creating retro visual styles focused on performance and simplicity.

Shader code
shader_type spatial;

render_mode diffuse_lambert, blend_mix, cull_disabled, specular_disabled, depth_prepass_alpha;


uniform sampler2D albedo_texture : source_color, filter_nearest;
uniform vec4 albedo_tint : source_color = vec4(1.0);

void fragment() {
    vec4 tex_color = texture(albedo_texture, UV);
    vec4 final_color = tex_color * albedo_tint;

    ALBEDO = final_color.rgb;
    ALPHA = final_color.a;
}
Live Preview
Tags
albedo, diffuse, oldschool, psx, retro
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 AivanWorld

guest

0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments