All Downloads are FREE. Search and download functionalities are using the official Maven repository.

Common.MatDefs.ShaderNodes.Misc.fakeLighting100.frag Maven / Gradle / Ivy

There is a newer version: 3.7.0-stable
Show newest version
void main(){

    vec4 dark = inColor * 0.3;
    vec4 bright = min(inColor * 4.0, 1.0);
    normal = normalize(normal);
    vec3 dir = vec3(0,0,1);
    float factor = dot(dir, normal);
    outColor = mix(dark, bright, factor);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy