mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
feat: deferred shading (day 2)
This commit is contained in:
parent
a585b52aa2
commit
0bd901d1a6
23 changed files with 236 additions and 92 deletions
|
|
@ -23,7 +23,7 @@ uniform vec3 u_sunDir;
|
|||
#include <shadows>
|
||||
|
||||
void main() {
|
||||
float shadow = calc_shadow();
|
||||
float shadow = calc_shadow(a_modelpos, a_realnormal, a_distance);
|
||||
vec3 fogColor = texture(u_skybox, a_dir).rgb;
|
||||
vec4 tex_color = texture(u_texture0, a_texCoord);
|
||||
float alpha = a_color.a * tex_color.a;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue