-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WebGL build Error : The URP material appears pink in webGL build #52
Comments
I am having the same issue. Any luck in finding out the fix? Im new to CC4 |
same issue here, is there already a update on this one? |
Any updates on this issue? |
Doesn't appear to be a problem in current version: CC/iC tools 1.6.2 / Unity 2020.3.48f1 If all of your shaders are pink, even the URP standard shaders on the clothes (which should work no matter what), then there is some sort of misconfiguration in your project and/or hardware incompatibilty? Hard to say with WebGL but it's unusual for everything to go pink. Can you connect the debugger to it to see if it's throwing any errors? |
I've found out it only happens with the 'Amplify' version of the shaders, not with the Shader Graph versions. The thing is, we want to use the wrinkles, but only the Amplify version supports the wrinkles. Is it possible to add support for wrinkles in the Shader Graph version |
@soupday did you encounter the same issue for webgl when using the amplify version of your shaders? We like to use that version, since that will support wrinkels. Shader graphs doesn't support wrinkles, right? |
I didn't have any issues with the Amplify shaders or the Shader graph. But that was with a character without wrinkle maps: The big problem with WebGL is that there is a 32 texture hard limit. Unity itself always uses 8 of those for lightmaps, shadow maps, etc, so that leaves 24 textures available to the user. The wrinkle system pushes the number of textures above this up to 30. Implementing the wrinkle system in the shader graph versions is going to have exactly the same problem. I left the shader graph versions in as a fallback that would/should always work so I didn't build the wrinkle system into them. However: If you bake the character, the baked version of the wrinkle shader only uses 22 textures. So it should work in WebGL. |
IF the baked wrinkle shader does work, you may need to correct a bug in the run time WrinkleManager script as outlined here. |
You can do this in the Import Settings Features disable tessellation and build Material, try it! |
The baked wrinkle shader is resulting in the following error's on WebGPU:
Looks like the limit on WebGPU might be 16? |
For WebGL the vast majority of GPU's can do 32 textures, but 16 is guaranteed: From the Web3D survey But for WebGPU that limit is 16 for most operating systems and hardware: Web3D survey In practice, especially for Unity, that would mean about 8 user textures at the most for WebGPU. So wrinkle maps are never going to work on WebGPU. |
Not sure if this is by design but the material appears pink wnen building for webgl
Unity version : 2020.3.7f1
Plugin version : URP 10.5/1.5.1,1.5.2
The text was updated successfully, but these errors were encountered: