Answer the question
In order to leave comments, you need to log in
Why can't shader be converted from txt to string in android studio?
I'm trying to load a 3D model from an OBJ file. And when the compiler reaches this line
String vertexShaderCode = IOUtils.toString(vertexShaderStream, String.valueOf(Charset.defaultCharset()));
throws an exception.
The shader itself looks like this.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question