Page 1 of 1

Vertex shader integration[CLOSED]

PostPosted: Mon May 11, 2015 9:28 am
by RyuMaster
Hi! I want to try and integrate Amplify with CORE framework, but it uses vertex shaders. Is there any example of vertex shader integration? I could find only surface ones.

Re: Vertex shader integration

PostPosted: Fri May 15, 2015 8:24 pm
by RyuMaster
Don't mind my question. I've tried conversion, and its very easy - following surface shader example, same applies to geometry and vertex shader, no difference.

But there is a problem. While material works fine, its not detected my Amplify anymore once I save the scene or re-scan.

Re: Vertex shader integration

PostPosted: Fri May 15, 2015 9:13 pm
by Ricardo Teixeira
Hello,

Our apologies for the delayed reply, we are a bit overloaded at the moment. Would it be possible to send us the shader via email to [email protected]? We would be happy to help with the conversion.

Thanks!

Re: Vertex shader integration

PostPosted: Fri May 15, 2015 9:25 pm
by RyuMaster
No problem, I've done conversion myself already (I though its different for vertex/geom shaders, but it is not).
But material with this shader is not detected by Amplify for some reason after scene re-save. I'll sent you email to test it.

Re: Vertex shader integration

PostPosted: Fri May 15, 2015 9:43 pm
by Ricardo Teixeira
RyuMaster wrote:No problem, I've done conversion myself already (I though its different for vertex/geom shaders, but it is not).
But material with this shader is not detected by Amplify for some reason after scene re-save. I'll sent you email to test it.


No problem, thanks for the files. The AT2 developer will have a look and get back to you as soon as possible.

Talk to you soon.

Re: Vertex shader integration

PostPosted: Mon May 18, 2015 2:10 pm
by Ricardo Teixeira
Hello,

We checked the shaders and it seems that you are almost there, just missing a tag and a keyword in the virtual texture preset.


Simply change:
Tags { "Queue" = "Geometry" "IgnoreProjector"="False" "RenderType"="echoUnlit" }
To:
Tags { "Queue" = "Geometry" "IgnoreProjector"="False" "RenderType"="Opaque" "Amplify"="True" }

Since the shader you are using uses _NormalMap instead of _BumpMap, you will have to manually add it to the virtual texture.

Image

Let us know if you run into any additional issues, we would be happy to help.

Thanks!

Re: Vertex shader integration

PostPosted: Thu Jul 02, 2015 10:36 pm
by Ricardo Teixeira
Hello,

Feel free to get in touch via [email protected] with additional questions, we would love to hear from you.

Thanks!