Imagination PowerVR SDK Blog

any alternatives to GLSL ?


#1

Hi,

For POWERVR SDK, is GLSL the only shading language option ?

Thanks in advance.




#2

GLSL ES is part of the OGLES2 spec. For this graphics API, there are no other shading languages that are natively supported.





Depending on your use case, and if there is no way to manually implement all shaders in GLSL ES, then it may be worth considering writing your own/find a shader language converter. Some well known game engines use this approach so shaders can be written once and then converted to different shading languages based on the target platform and graphics API it requires.


#3

Hi Joe,





THanks for the info !! I was thinking along the lines of using Cg. Either ways, I will use your advice and have some script based shader which converts to different platform based shader language.





Thanks.