0
Not a bug

Shader is animating in ShaderForge preview but not in engine

Garrett Shields 8 years ago updated by Freya Holmér (Developer) 8 years ago 3

I'm working on a vertex offset shader for my grass. Getting some weird behaviour.. I had this working fine before using a simple gradient through a sin wave, but I haven't been able to get it to work with my noise texture and a panner. The grass will animate in Shader Forge's preview but not in Unity.


This is my current setup.

Image 566

Answer

Answer
Not a bug

Glad it worked out!

Make sure you have your material set up correctly, you may have missed a parameter that you had in SF. It could also be a scale issue either on the gameobject itself, or simply that you're using two vastly different sizes of meshes to test

Ah it was a dumb mistake on my part. Thanks for the reply Joachim.


I forgot you can't hardcode stuff like textures in Unity shaders. I needed to also choose the noise texture in the material.


Thanks for the awesome tool Joachim.

Answer
Not a bug

Glad it worked out!