mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-11 22:11:51 +00:00
improve lights
This commit is contained in:
parent
2e9b6e16a4
commit
fdeec22515
2 changed files with 4 additions and 2 deletions
|
|
@ -51,7 +51,9 @@ void main() {
|
|||
|
||||
mat4 viewmodel = u_view * u_model;
|
||||
a_distance = length(viewmodel * vec4(pos3d, 0.0));
|
||||
#ifndef ADVANCED_RENDER
|
||||
a_fog = calc_fog(length(viewmodel * vec4(pos3d * FOG_POS_SCALE, 0.0)) / 256.0);
|
||||
#endif
|
||||
a_emission = v_normal.w;
|
||||
|
||||
vec4 viewmodelpos = u_view * a_modelpos;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue