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

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

The 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