smkplus / ShaderMan

Convert ShaderToy to Unity HLSL/CG
https://smkplus.github.io/ShaderMan.io
MIT License
1.42k stars 197 forks source link

Type mismatch on line (d3d11) #32

Closed jBachalo closed 3 years ago

jBachalo commented 3 years ago

Great resource! Works on about half the shaders I've tried so far.

One common error I get is a 'Type mismatch' error (d3d11)

For instance on the following line "fixed2x2 rot1=fixed2x2(cos(a1),sin(a1),-sin(a1),cos(a1));"

I think part of the problem in debugging is that the line indicated is not the REAL line causing the issue

In my case the actual line I think was 2 -3 lines further down dir.xz*=rot1;

Which i fixed after searching other issues https://github.com/smkplus/ShaderMan/issues/10 like so

dir.xz= mul(dir.xz,rot1);

jBachalo commented 3 years ago

Fixed.