0

Unity 5 Vertex Animation Error

binaryprogrammer 9 ár síðan Uppfært 9 ár síðan 1
I have ShaderForge v1.04 installed. On a fresh Unity 5 (5.0.0b14) project, there are warnings with the Vertex Animation Shader before doing anything.

Shader warning in 'Shader Forge/Examples/Vertex Animation': Upgrade NOTE: unity_Scale shader variable was removed; replaced 'unity_Scale.w' with '1.0' at line 1

The same warning shows up for LightWrapping.

If you open the Vertex Animation shader with ShaderForge, the preview is a neon purple sphere and you get 2 errors and a warning:

Shader error in 'Shader Forge/Examples/Vertex Animation': unrecognized identifier 'UnityGIInput' at line 120 (on d3d11)
Shader error in 'Shader Forge/Examples/Vertex Animation': unrecognized identifier 'd' at line 120 (on d3d11)
Shader warning in 'Shader Forge/Examples/Vertex Animation': implicit truncation of vector type at UnityStandardBRDF.cginc(233) (on d3d11)

All that being said, in the example scene everything looks and runs as expected. Although the warnings do show up.

Let me know if you need any more info!
+1
I think this has to do with shaders built in Unity 4.x and bringing them over to Unity 5. If I exactly recreate the shaders from scratch, I get no errors.