Browse Source

Refine shader templates to match JME conventions

Co-authored-by: neph1 <[email protected]>
copilot-swe-agent[bot] 1 month ago
parent
commit
4723cb111e

+ 0 - 2
jme3-materialeditor/src/com/jme3/gde/materialdefinition/BasicShader.frag

@@ -1,5 +1,3 @@
-#import "Common/ShaderLib/GLSLCompat.glsllib"
-
 uniform vec4 m_Color;
 
 void main(){

+ 1 - 3
jme3-materialeditor/src/com/jme3/gde/materialdefinition/BasicShader.vert

@@ -1,9 +1,7 @@
-#import "Common/ShaderLib/GLSLCompat.glsllib"
+uniform mat4 g_WorldViewProjectionMatrix;
 
 attribute vec3 inPosition;
 
-uniform mat4 g_WorldViewProjectionMatrix;
-
 void main(){
     gl_Position = g_WorldViewProjectionMatrix * vec4(inPosition, 1.0);
 }