From cd4345373df1ed29f78226c131e6410b102f7dae Mon Sep 17 00:00:00 2001 From: Shiny Metagross <30511800+ShinyMetagross@users.noreply.github.com> Date: Mon, 5 Sep 2022 11:47:34 -0700 Subject: [PATCH] Fixed improper casting - Made a mistake on the casting in the shader that only worked for Intel --- wadsrc/static/shaders/glsl/main.vp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wadsrc/static/shaders/glsl/main.vp b/wadsrc/static/shaders/glsl/main.vp index d9ab20fa3..dd0558c59 100644 --- a/wadsrc/static/shaders/glsl/main.vp +++ b/wadsrc/static/shaders/glsl/main.vp @@ -169,7 +169,7 @@ void AddWeightedBone(uint boneIndex, float weight, inout vec4 position, inout ve { if (weight != 0.0) { - mat4 transform = bones[uBoneIndexBase + (int)boneIndex]; + mat4 transform = bones[uBoneIndexBase + int(boneIndex)]; mat3 rotation = mat3(transform); position += (transform * aPosition) * weight; normal += (rotation * aNormal.xyz) * weight;