0
Not a bug

Shader is animating in ShaderForge preview but not in engine

Garrett Shields vor 9 Jahren aktualisiert von Freya Holmér (Developer) vor 9 Jahren 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

Antwort

Antwort
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.

Antwort
Not a bug

Glad it worked out!