Skip to content

Commit

Permalink
Fix Casting error that occurred on certain GPUs (#2274)
Browse files Browse the repository at this point in the history
Fix Casting error that occurred on certain GPUs
  • Loading branch information
yaRnMcDonuts authored and scenemax3d committed Jun 2, 2024
1 parent d13df22 commit 8ed0652
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ void main(){
alphaBlend = alphaBlend_2;
}

texChannelForAlphaBlending = int(mod($i, 4.0)); //pick the correct channel (r g b or a) based on the layer's index
texChannelForAlphaBlending = int(mod(float($i), 4.0)); //pick the correct channel (r g b or a) based on the layer's index
switch(texChannelForAlphaBlending) {
case 0:
finalAlphaBlendForLayer = alphaBlend.r;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ void main(){
alphaBlend = alphaBlend_2;
}

texChannelForAlphaBlending = int(mod($i, 4.0)); //pick the correct channel (r g b or a) based on the layer's index
texChannelForAlphaBlending = int(mod(float($i), 4.0)); //pick the correct channel (r g b or a) based on the layer's index
switch(texChannelForAlphaBlending) {
case 0:
finalAlphaBlendForLayer = alphaBlend.r;
Expand Down

0 comments on commit 8ed0652

Please sign in to comment.