20 lines
449 B
Plaintext
20 lines
449 B
Plaintext
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
|
|
}
|