Page 1 of 1

Error when compiling, but working in Canvas.

PostPosted: Thu Mar 28, 2019 4:39 pm
by Dimlos
Hello, first, thank you for the work on this pluggin, it's great.

I found this problem where I can see my shader working in my canvas but Unity is throwing me error and only displays
a white plane in the scene.

Here is a gif of what I see in the Canvas:
https://i.imgur.com/zA3Z9el.gifv

Here is the error:
Image

And here is the code:
Image
Code: Select all
      void surf( Input i , inout SurfaceOutput o )
      {
         float temp_output_42_0 = i.uv_texcoord.x;
         float4 tex2DNode1 = tex2D( _TextureSample0, ( i.uv_texcoord + (0.0 + (sin( ( ( temp_output_42_0 + _Time.y ) * 2.0 * 6,28318548202515 ) ) - -1.0) * (0.02 - 0.0) / (1.0 - -1.0)) ) );
         o.Emission = tex2DNode1.rgb;
         o.Alpha = ( tex2DNode1.a * (-4.0 + (( temp_output_42_0 - _Float0 ) - -1.0) * (4.0 - -4.0) / (1.0 - -1.0)) );
      }


Hopefully the problem comes from me and not the pluggin. I'll find a way around it, but I prefer to give feedback just in case .

Re: Error when compiling, but working in Canvas.

PostPosted: Mon Apr 01, 2019 4:26 pm
by Dimlos
It eventually fixed itself.

Re: Error when compiling, but working in Canvas.

PostPosted: Mon Apr 01, 2019 5:13 pm
by Amplify_Borba
Hello!

We can't seem to replicate this on our side, be sure to let us know if it occurs again as we haven't come across this error before, thank you!