File tree Expand file tree Collapse file tree
jme3-terrain/src/main/resources/Common/MatDefs/Terrain Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -259,7 +259,7 @@ void main(){
259259 alphaBlend = alphaBlend_2;
260260 }
261261
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
263263 switch (texChannelForAlphaBlending) {
264264 case 0 :
265265 finalAlphaBlendForLayer = alphaBlend.r;
Original file line number Diff line number Diff line change @@ -246,7 +246,7 @@ void main(){
246246 alphaBlend = alphaBlend_2;
247247 }
248248
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
250250 switch (texChannelForAlphaBlending) {
251251 case 0 :
252252 finalAlphaBlendForLayer = alphaBlend.r;
You can’t perform that action at this time.
0 commit comments