我還沒有找到一個工具來檢查日食或其他OnpenGL着色器上的文本拼寫。 有拼寫錯誤的基於文本着色處理,如:任何OpengGL Shader拼寫檢查器?
protected String vertexShaderCode =
// This matrix member variable provides a hook to manipulate
// the coordinates of the objects that use this vertex shader
"uniform mat4 uMVPMatrix; \n" + "attribute vec3 vPosition; \n"
+ "void main(){ \n" +
// the matrix must be included as a modifier of gl_Position
" gl_Position = uMVPMatrix * vec4(vPosition, 1.0); \n" + "} \n";
是一個非常耗時的任務。
所以,我想知道是否有人知道某種工具可以幫助解決這個問題。
你是什麼意思檢查拼寫?你是在談論語法突出還是全面的語法分析? –