mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-13 15:01:49 +00:00
update main shader
This commit is contained in:
parent
61e4648924
commit
14a61f7891
1 changed files with 1 additions and 1 deletions
|
|
@ -30,7 +30,7 @@ void main() {
|
||||||
texColor.rgb = u_debugNormals ? (a_normal * 0.5 + 0.5) : vec3(1.0);
|
texColor.rgb = u_debugNormals ? (a_normal * 0.5 + 0.5) : vec3(1.0);
|
||||||
|
|
||||||
f_color = texColor;
|
f_color = texColor;
|
||||||
f_color.rgb *= min(vec3(1.0), a_torchLight.rgb + a_skyLight);
|
f_color.rgb *= max(a_torchLight.rgb, a_skyLight);
|
||||||
|
|
||||||
#ifndef ADVANCED_RENDER
|
#ifndef ADVANCED_RENDER
|
||||||
vec3 fogColor = texture(u_skybox, a_dir).rgb;
|
vec3 fogColor = texture(u_skybox, a_dir).rgb;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue