openframeworks / openframeworks/openFrameworks
iOS/ofShader doesn't support GLES3.0 shaders
Open
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 10.4k
- Forks
- 2.6k
- Avg merge
- 1d 21h
- Merged PRs (30d)
- 9
Description
Even with settings.glesVersion = OFXIOS_RENDERER_ES3; trying to use GLES shaders gives errors.
[ error ] ofShader: setupShaderFromSource(): GL_VERTEX_SHADER shader failed to compile
[ error ] ofShader: GL_VERTEX_SHADER shader reports:
ERROR: 0:1: '' : version '300' is not supported
ERROR: 0:1: '' : syntax error: #version
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing ofShader setupShaderFromSource() on iOS with settings.glesVersion set to OFXIOS_RENDERER_ES3, then reproduce the reported GL_VERTEX_SHADER compilation failure using a GLES 3.0 shader. Done means the shader accepts the #version 300 directive and compiles under the ES3 renderer without the reported errors.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp, ios
- Domain
- computer-graphics, mobile-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100