A
A
Alexandra2018-05-31 11:05:41
Java
Alexandra, 2018-05-31 11:05:41

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.
5b0fac46dc73c290973272.png
The shader itself looks like this.
5b0faca0ee08b721570027.png

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question