Common.MatDefs.ShaderNodes.Misc.fakeLighting100.frag Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jme3-core Show documentation
Show all versions of jme3-core Show documentation
jMonkeyEngine is a 3-D game engine for adventurous Java developers
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