Просмотр исходного кода

TSL Transpiler: Fix operator precedence of `GLSLDecoder` (#31515)

sunag 8 месяцев назад
Родитель
Сommit
3bd02e1aae
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      examples/jsm/transpiler/GLSLDecoder.js

+ 1 - 1
examples/jsm/transpiler/GLSLDecoder.js

@@ -11,7 +11,7 @@ const arithmeticOperators = [
 ];
 
 const precedenceOperators = [
-	'*', '/', '%',
+	'/', '*', '%',
 	'-', '+',
 	'<<', '>>',
 	'<', '>', '<=', '>=',

粤ICP备19079148号