Welcome to mirror list, hosted at ThFree Co, Russian Federation.

default_frag.glsl « shaders « eevee « engines « draw « blender « source - git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 8d4a1e6d523aa9129d08c33f215c0a6d3178d37a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13

uniform vec3 diffuse_col;
uniform vec3 specular_col;
uniform int hardness;

out vec4 FragColor;

void main()
{
	float roughness = 1.0 - float(hardness) / 511.0;
	roughness *= roughness;
	FragColor = vec4(eevee_surface_lit(worldNormal, diffuse_col, specular_col, roughness), 1.0);
}