general improvements
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user