without changes - only from topic code
Uncaught exception thrown in Thread[jME3 Main,5,main]
RendererException: compile error in: ShaderSource[name=MatDefs/PBRTerrain/terrainPBRShader.frag, defines, type=Fragment, language=GLSL150]
Fragment shader failed to compile with the following errors:
ERROR: 0:744: error(#202) No matching overloaded function found: PBR_ComputeDirectLight
ERROR: error(#273) 1 compilation errors. No code generated
after copy everything below(from your link to JME PBR shader):
float ndotv = max( dot( normal, viewDir ),0.0);
into shader.
Uncaught exception thrown in Thread[jME3 Main,5,main]
RendererException: compile error in: ShaderSource[name=MatDefs/PBRTerrain/terrainPBRShader.frag, defines, type=Fragment, language=GLSL150]
Fragment shader failed to compile with the following errors:
ERROR: 0:744: error(#202) No matching overloaded function found: PBR_ComputeDirectLight
ERROR: 0:800: error(#143) Undeclared identifier: alpha
ERROR: error(#273) 2 compilation errors. No code generated
will try look at it, but if you know what might be wrong, would be nice, maybe alpha is named differently
will copy from line 177 now, but a lot differences there
edit: when i copy after line 177, then i got:
Uncaught exception thrown in Thread[jME3 Main,5,main]
RendererException: compile error in: ShaderSource[name=MatDefs/PBRTerrain/terrainPBRShader.frag, defines, type=Fragment, language=GLSL150]
Fragment shader failed to compile with the following errors:
ERROR: 0:716: error(#198) Redefinition error: specular
ERROR: 0:718: error(#143) Undeclared identifier: albedo
ERROR: 0:718: error(#160) Cannot convert from: "float" to: "highp 4-component vector of vec4"
ERROR: 0:719: error(#198) Redefinition error: diffuseColor
ERROR: 0:769: error(#202) No matching overloaded function found: PBR_ComputeDirectLight
ERROR: 0:825: error(#143) Undeclared identifier: alpha
ERROR: error(#273) 6 compilation errors. No code generated
so like said too much changes ;/ i belive it will not be that quite easy