general improvements

This commit is contained in:
Asuro
2025-02-14 02:44:40 +01:00
parent 6e82678ade
commit ab326d3624
16 changed files with 185 additions and 80 deletions

View File

@@ -1,5 +1,5 @@
$input a_position, a_color0, a_texcoord0
$output v_color0, v_uv0, v_wpos
$input a_position, a_normal, a_color0, a_texcoord0
$output v_color0, v_normal, v_uv0, v_wpos
#include "common.sh"
@@ -9,4 +9,6 @@ void main()
v_color0 = a_color0;
v_uv0 = a_texcoord0;
v_wpos = mul(u_model[0], vec4(a_position, 1.0)).xyz;
v_normal = normalize(mul((mat3)u_model[0], a_normal));
}