i dont want to put the shader file in the sdcard
and since android JNI cant get access to asset folder easily, so i want to put the shaders inside the .cpp file.
is there any tutorial ? or some link ? or your help ?
So, you just copy the shader program and paste it in the .cpp. Then load it as a string (const c8 VertexShader[] = "MyShaderCodeGoesHere, VertexShader, PixelShaderBlaBlaETC."; ), what`s the problem? The shaders usually are in separate files just for user convenience. Then you use the addHighLevelShaderMaterial, not the addHighLevelShaderMaterialFromFiles.
"Although we walk on the ground and step in the mud... our dreams and endeavors reach the immense skies..."
The shader path is already changeable, you can use a define to set a new prefix. Changing to in file shaders is only possible by altering the cpp files, though.