laurentlb / shader-minifier

Minify and obfuscate GLSL or HLSL code

Home Page:https://ctrl-alt-test.fr/minifier/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Wrong operation in constant arithmetic

therontarigo opened this issue · comments

Input:

out vec4 O;
void main() {
  O.r = (1.*487)/5;
}

Result: out vec4 m;void main(){m.x=97;}
Expected: something that evaluates to 97.4 (there is a related bug that neither 487./5 nor 487/5. is simplified. probably they can be solved together).