little cleanup of vehicle rendering

This commit is contained in:
aap
2021-01-12 14:07:24 +01:00
parent 9b2037419f
commit 55320a03f1
10 changed files with 16 additions and 22 deletions

View File

@@ -26,11 +26,9 @@ main(void)
v_color = in_color;
vec4 combinedAmbient = mix(u_emiss, u_amb, Normal.z);
// v_color.rgb += u_ambLight.rgb*surfAmbient;
v_color.rgb += combinedAmbient.rgb*surfAmbient;
v_color.rgb += DoDynamicLight(Vertex.xyz, Normal)*surfDiffuse;
v_lightingCont = max(0.5, (v_color.r + v_color.g + v_color.b) / 3.0);
// v_color = clamp(v_color, 0.0, 1.0);
v_color *= u_matColor;
// for fresnel