File tree 2 files changed +2
-2
lines changed
jme3-terrain/src/main/resources/Common/MatDefs/Terrain
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -259,7 +259,7 @@ void main(){
259
259
alphaBlend = alphaBlend_2;
260
260
}
261
261
262
- texChannelForAlphaBlending = int (mod ($i , 4.0 )); // pick the correct channel (r g b or a) based on the layer's index
262
+ texChannelForAlphaBlending = int (mod (float ($i) , 4.0 )); // pick the correct channel (r g b or a) based on the layer's index
263
263
switch (texChannelForAlphaBlending) {
264
264
case 0 :
265
265
finalAlphaBlendForLayer = alphaBlend.r;
Original file line number Diff line number Diff line change @@ -246,7 +246,7 @@ void main(){
246
246
alphaBlend = alphaBlend_2;
247
247
}
248
248
249
- texChannelForAlphaBlending = int (mod ($i , 4.0 )); // pick the correct channel (r g b or a) based on the layer's index
249
+ texChannelForAlphaBlending = int (mod (float ($i) , 4.0 )); // pick the correct channel (r g b or a) based on the layer's index
250
250
switch (texChannelForAlphaBlending) {
251
251
case 0 :
252
252
finalAlphaBlendForLayer = alphaBlend.r;
You can’t perform that action at this time.
0 commit comments