hi,
I’m trying to convert a Unity2.6 shader to Unity3.0beta Surface Shader. The Unity2.6 shader renders black in Unity3.0. The main pixel shader has converted and works as expected but my issue is that I need to modify the vertex shader vertex position. Is this possible? My attempts so far result in the shader not compiling. adding
#pragma vertex vert
void vert (inout appdata_full v)
{
}
gets me close, if finds the ‘vert’ function apparently. but still produces errors. “Program ‘surf’ syntax error, unexpected reserved word “float””
The old 2.6 way of adding
vertex2Frag vert(appdata_full v)
{
}
Complains “Surface shader vertex function ‘vert’ not found”
Thanks