WebGL does not render shaders

Node-based Shader Editor

WebGL does not render shaders

Postby kevin3d » Thu Jan 11, 2018 3:37 am

Hello,

I built a game around a workflow i needed in Amplify Shader. I'm using trim sheets so my meshes all have their 4th UV Sets in use for normal maps. We just tried to create a build for WebGL, but none of my amplify shaders are working with webGL. Can you give any suggestions? I'm not doing anything fancy with the shader. Just plugging in nodes into the "standard shader" you provide that is similar to unity's standard shader.

Most importantly i need my normal maps to work with webGL as i'm using a different set of UVs.
Attachments
0001.jpg
0001.jpg (231.47 KiB) Viewed 2018 times
kevin3d
 
Posts: 3
Joined: Fri Nov 03, 2017 10:48 pm

Re: WebGL does not render shaders

Postby kevin3d » Thu Jan 11, 2018 4:31 am

After playing around with it some. It seems like its functioning.. but only on shader model 3.0. Is there a reason why it wouldn't work on any other one? What would be the downsides of using shader model 3.0? If you have suggestions to get it to work on shader model 4.5 (which seems like the default). I'm happy to try.
kevin3d
 
Posts: 3
Joined: Fri Nov 03, 2017 10:48 pm

Re: WebGL does not render shaders

Postby Amplify_Borba » Thu Jan 11, 2018 10:37 am

kevin3d wrote:After playing around with it some. It seems like its functioning.. but only on shader model 3.0. Is there a reason why it wouldn't work on any other one? What would be the downsides of using shader model 3.0? If you have suggestions to get it to work on shader model 4.5 (which seems like the default). I'm happy to try.


Hey there kevin3d, even though you can use ASE to create WebGL compatible shaders we can't guarantee that they will work as expected as you may run into version specific Browser or Unity issues.

Since WebGL 2.0 roughly matches OpenGL ES 3.0, shader model 4.5 is not supported since it requires OpenGL ES 3.1 capabilities, as you can confirm on the Unity manual.

While using a lower shader model might have the downsides of supporting less features, limiting the shader instructions you are able to use, it provides higher compatibility for older platforms and devices.

Please let us know if you have any further questions, thanks!
Customer Relations at Amplify Creations
Learn more about our offering: Amplify Creations Products
Amplify Shader Editor won the Asset Store Best Tool Award - Thank you for your support!
User avatar
Amplify_Borba
 
Posts: 1239
Joined: Mon Jul 24, 2017 9:50 am


Return to Amplify Shader Editor

Who is online

Users browsing this forum: No registered users and 0 guests