stick-the-quick/vfx/chrome.gdshader

20 lines
449 B
Plaintext
Raw Permalink Normal View History

shader_type spatial;
#include "res://vfx/util.gdshaderinc"
UNIVERSAL_SOLID_PARAMS
uniform sampler2D image: TEXTURE_HINTS;
uniform float reflectivity = 0.9;
void fragment() {
ALBEDO = texture(image, UV).rgb;
METALLIC = reflectivity;
CLEARCOAT = reflectivity;
CLEARCOAT_ROUGHNESS = 1.0 - reflectivity;
ROUGHNESS = 1.0 - reflectivity;
SPECULAR = reflectivity;
RIM = reflectivity;
RIM_TINT = 1.0 - reflectivity;
UNIVERSAL_SOLID_PROCESSING
}