added enemy stun script

This commit is contained in:
derek
2025-05-22 09:16:15 -05:00
parent 50744c09d2
commit cbb50b4d4f
3 changed files with 40 additions and 2 deletions

View File

@@ -121,7 +121,7 @@ void vertex() {
float h = mix(texelFetch(_height_maps, uv_a, 0).r, texelFetch(_height_maps, uv_b, 0).r, vertex_lerp);
v_vertex.y = h;
}
// Convert model space to view space w/ skip_vertex_transform render mode
VERTEX = (VIEW_MATRIX * vec4(v_vertex, 1.0)).xyz;
NORMAL = normalize((MODELVIEW_MATRIX * vec4(NORMAL, 0.0)).xyz);