Morrowind Enchanted Item Sheen

A simple recreation of the Morrowind effect that Enchanted Items have. That kind of ‘plastic wrap’ sheen and shimmer.

To use: create a shader material .tres file and set your material_overlay to the material.

Shader code
shader_type spatial;
render_mode blend_add, depth_prepass_alpha, cull_back;

uniform sampler2D noise_tex;
uniform float noise_scale = 2.0;
uniform float noise_speed = 0.5;

uniform vec4 tint_color : source_color = vec4(0.283, 0.423, 1.0, 1.0);
uniform float fresnel_strength = 2.0;
uniform float sheen_intensity = 1.5;

void fragment() {
    vec2 uv = UV * noise_scale;
    uv += TIME * noise_speed;

    float noise = texture(noise_tex, uv).r;
    float fresnel = pow(1.0 - dot(NORMAL, VIEW), fresnel_strength);

    float magic_mask = fresnel * (0.5 + noise * 0.5);
    magic_mask *= 0.9 + sin(TIME * 2.0) * 0.1;

    ALBEDO = tint_color.rgb * magic_mask * sheen_intensity;
    ALPHA = magic_mask;
}
Tags
enchanted, fresnel, Magic, morrowind, shimmer
The shader code and all code snippets in this post are under MIT license and can be used freely. Images and videos, and assets depicted in those, do not fall under this license. For more info, see our License terms.

Related shaders

Item Highlighter

3D Item Highlighter (with Angle Adjustment!)

Item Highlight Shader

guest

0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments