mirror of
https://github.com/ZDoom/qzdoom.git
synced 2025-02-02 13:51:52 +00:00
Fixed improper casting
- Made a mistake on the casting in the shader that only worked for Intel
This commit is contained in:
parent
a8bab6a21d
commit
cd4345373d
1 changed files with 1 additions and 1 deletions
|
@ -169,7 +169,7 @@ void AddWeightedBone(uint boneIndex, float weight, inout vec4 position, inout ve
|
||||||
{
|
{
|
||||||
if (weight != 0.0)
|
if (weight != 0.0)
|
||||||
{
|
{
|
||||||
mat4 transform = bones[uBoneIndexBase + (int)boneIndex];
|
mat4 transform = bones[uBoneIndexBase + int(boneIndex)];
|
||||||
mat3 rotation = mat3(transform);
|
mat3 rotation = mat3(transform);
|
||||||
position += (transform * aPosition) * weight;
|
position += (transform * aPosition) * weight;
|
||||||
normal += (rotation * aNormal.xyz) * weight;
|
normal += (rotation * aNormal.xyz) * weight;
|
||||||
|
|
Loading…
Reference in a new issue