cancel
Showing results for 
Search instead for 
Did you mean: 

Custom shaders forFull Body Meta Avatars

GlimpseGroupDev
Protege

Anyone got any custom shaders working for the full body meta avatars? Even if I just copy the text from the default shader and paste it into a new shader to make changes to, I get errors that AvatarCystomTypes.cginc, OvrAvatarSupportDefines, OvrAvatarVertexFetch and OvrAvatarCommonVertexParams cannot be found.

I think it is because the Oculus plugin is a package now, whereas it used to be in the assets folder. With the old version I used an altered version of the avatar shader to get the vertex shader animation they do with an unlit appearance.

Anyone know if there is still a way to do this?

3 REPLIES 3

GlimpseGroupDev
Protege

I'm going to bump this question again because it is a big downgrade from the previous SDK. It seems right now that when you download the Oculus Avatar SDK update for full body avatars that there is actually NO WAY to change the avatars to a custom shader that re uses the vertex shading to animate the avatars with new rendering behavior. Is this really true? Every shader option they have is lit and the whole performance profile of our app is built around having no dynamic lights at all. My goal is to allow the avatars to animate in the same way that oculus provides but to replaces the lit appearance with an unlit appearance that I can change the brightness of with a parameter during runtime. 

GlimpseGroupDev
Protege

For anyone who finds this in the future: you can duplicate the avatar shader labeled as custom, the others will not compile but that one will and you can make edits to your duplicate

kevinagnes
Protege

Thanks @GlimpseGroupDev !