Lighting improvements
This commit is contained in:
@@ -13,5 +13,6 @@ varying vec2 v_texCoord;
|
||||
|
||||
void main(){
|
||||
vec4 color = texture2D(u_texture, v_texCoord.xy);
|
||||
//color.a = clamp(color.a, 0.0, 0.8);
|
||||
gl_FragColor = clamp(vec4(mix(u_ambient.rgb, color.rgb, color.a), u_ambient.a - color.a), 0.0, 1.0);
|
||||
}
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 736 B After Width: | Height: | Size: 738 B |
File diff suppressed because it is too large
Load Diff
Binary file not shown.
|
Before Width: | Height: | Size: 718 KiB After Width: | Height: | Size: 735 KiB |
Reference in New Issue
Block a user