Shader_Minifier icon indicating copy to clipboard operation
Shader_Minifier copied to clipboard

Wrong operation in constant arithmetic

Open therontarigo opened this issue 1 year ago • 0 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).

therontarigo avatar Jun 10 '24 14:06 therontarigo