mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-10 05:21:49 +00:00
improve torchlight
This commit is contained in:
parent
931f0180ef
commit
559322f70a
3 changed files with 4 additions and 4 deletions
|
|
@ -38,7 +38,7 @@ void main() {
|
|||
a_normal = calc_screen_normal(a_realnormal);
|
||||
|
||||
vec3 light = v_light.rgb;
|
||||
float torchlight = calc_torch_light(a_modelpos.xyz);
|
||||
float torchlight = calc_torch_light(a_realnormal, a_modelpos.xyz);
|
||||
a_torchLight = vec4(pow(light + torchlight * u_torchlightColor, vec3(u_gamma)), 1.0f);
|
||||
|
||||
a_texCoord = v_texCoord;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue