- Home /
WebCamTexture on iOS
I'm using a WebCamTexture on iOS to display a live background from the back facing camera. Unfortunately the image is displayed to dark. Adding Unlit shaders in the Editor works, but as soon as I use a shader on iOS the live preview is not anymore shown.
Can I increase the brightness of the WebCamTexture without using a shader? Or is there any shader that works with this texture on the iOS? Furthermore, is it normal to consume a lot of GPU/CPU so that my models rotate much slower in the foreground?
Thanks, Thomas
Answer by Winklehner · May 03, 2013 at 01:53 PM
Ok, seems I found the solution myself (except for the poor performance). I needed to define a material with the shader and assign it to the texture. Seems using the default material and assigning a shader with renderer.material.shader = Shader.Find("Mobile/Unlit") does not work. The shaders are just not there on the device as no material is using them...
Have you checked out NatCam? It is extremely performant on both iOS and Android. $$anonymous$$ake sure you check it out.
Your answer
Follow this Question
Related Questions
Radial Blur for Android/iOS 0 Answers
iOS Custom Specular Shader 2 Answers
How do I properly use Unity's WebCamTexture? IOS 2 Answers
Snow scene is a neon blue in an iOS build, but looks normal on the computer 1 Answer
I have two very simple shaders that are breaking on IOS. Does anybody know why? 0 Answers