- Home /
sinh and cosh in GLES
Hi,
I have written a shader with multiple passes and in the final pass I make use of the sinh and cosh functions. This does not compile for the gles render target. I know that I can write my own version of the function use the exp command if need be, but is there a way to make this work for gles? The commands seem to be supported from GLSL 1.3 going forward.
If I do need to write my own functions. Is there a way to only have to rewrite this single pass as a new subshader? Can I use the UsePass command to share the passes from my existing shader? It compiles fine for everything else.
Answer by mars84 · May 24, 2012 at 11:02 AM
I got around the problem by writing a Subshader and using UsePass to not repeat shaders. It would still be nice to know whether it is possible to support the sinh and cosh functions natively on GLES.
Your answer
![](https://koobas.hobune.stream/wayback/20220613071806im_/https://answers.unity.com/themes/thub/images/avi.jpg)