Skip to content

Commit ffeeb26

Browse files
committed
Fix transformation not being taken into account with lighting
1 parent f3b4397 commit ffeeb26

2 files changed

Lines changed: 1 addition & 1 deletion

File tree

renderer/shaders/mesh.vert

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ layout(std430, binding = 2) buffer readonly BoneInformation {
3333

3434
void main() {
3535
vec4 bPos = model * vec4(inPosition, 1.0);
36-
vec4 bNor = vec4(inNormal, 0.0);
36+
vec4 bNor = model * vec4(inNormal, 0.0);
3737

3838
gl_Position = vp * bPos;
3939
outNormal = bNor.xyz;

renderer/shaders/mesh.vert.spv

56 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)