diff --git a/src/shader.wgsl b/src/shader.wgsl index cab173f3..e861632c 100644 --- a/src/shader.wgsl +++ b/src/shader.wgsl @@ -78,13 +78,12 @@ var r_EntityTransforms: array; @vertex fn vs_entity( - @builtin(instance_index) instance_index: u32, @location(0) pos: vec3, @location(1) normal: vec3, ) -> EntityOutput { - var position: vec3 = r_EntityTransforms[instance_index].matrix3 * pos+r_EntityTransforms[instance_index].translation; + var position: vec3 = pos;//r_EntityTransforms[instance_index].matrix3 * pos+r_EntityTransforms[instance_index].translation; var result: EntityOutput; - result.normal = r_EntityTransforms[instance_index].matrix3 * normal; + result.normal = normal;//r_EntityTransforms[instance_index].matrix3 * normal; result.view = position - r_data.cam_pos.xyz; result.position = r_data.proj * r_data.view * vec4(position, 1.0); return result;