Minor cleanup.

This commit is contained in:
Rinnegatamante
2020-10-25 11:52:45 +01:00
parent ea24a9566e
commit a4036fef41
2 changed files with 4 additions and 5 deletions
-1
View File
@@ -1368,7 +1368,6 @@ openGLFW(EngineOpenParams *openparams)
vglInitExtended(0x10000, 960, 544, 0x100000, SCE_GXM_MULTISAMPLE_4X); vglInitExtended(0x10000, 960, 544, 0x100000, SCE_GXM_MULTISAMPLE_4X);
vglSetupRuntimeShaderCompiler(SHARK_OPT_UNSAFE, SHARK_ENABLE, SHARK_ENABLE, SHARK_ENABLE); vglSetupRuntimeShaderCompiler(SHARK_OPT_UNSAFE, SHARK_ENABLE, SHARK_ENABLE, SHARK_ENABLE);
vglUseVram(GL_TRUE); vglUseVram(GL_TRUE);
vglStartRendering();
makeVideoModeList(); makeVideoModeList();
+4 -4
View File
@@ -20,10 +20,10 @@ void main(
fixed out v_fog : FOG, fixed out v_fog : FOG,
float4 out gl_Position : POSITION float4 out gl_Position : POSITION
) { ) {
float4x4 Skin = u_boneMatrices[(int)in_indices.x] * in_weights.x float4x4 Skin = u_boneMatrices[(int)(in_indices.x * 255)] * in_weights.x
+ u_boneMatrices[(int)in_indices.y] * in_weights.y + u_boneMatrices[(int)(in_indices.y * 255)] * in_weights.y
+ u_boneMatrices[(int)in_indices.z] * in_weights.z + u_boneMatrices[(int)(in_indices.z * 255)] * in_weights.z
+ u_boneMatrices[(int)in_indices.w] * in_weights.w; + u_boneMatrices[(int)(in_indices.w * 255)] * in_weights.w;
float3 SkinVertex = (mul(float4(in_pos, 1.f), Skin)).xyz; float3 SkinVertex = (mul(float4(in_pos, 1.f), Skin)).xyz;
float3 SkinNormal = (mul(float4(in_normal, 0.f), Skin)).xyz; float3 SkinNormal = (mul(float4(in_normal, 0.f), Skin)).xyz;