We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f3b4397 commit ffeeb26Copy full SHA for ffeeb26
2 files changed
renderer/shaders/mesh.vert
@@ -33,7 +33,7 @@ layout(std430, binding = 2) buffer readonly BoneInformation {
33
34
void main() {
35
vec4 bPos = model * vec4(inPosition, 1.0);
36
- vec4 bNor = vec4(inNormal, 0.0);
+ vec4 bNor = model * vec4(inNormal, 0.0);
37
38
gl_Position = vp * bPos;
39
outNormal = bNor.xyz;
renderer/shaders/mesh.vert.spv
56 Bytes
0 commit comments