Closed
Description
When assigning Material
HeightBasedTerrain.j3md to a Terrain
, the following log message appears on the console during application startup:
Material mat = new Material(assetManager, "Commons/MatDefs/Terrain/HeightBasedTerrain.j3md");
...
Terrain terrain = ...;
terrain.setMaterial(mat);
ago 14, 2024 5:41:37 PM com.jme3.material.plugins.J3MLoader readTechnique
WARNING: Fixed function technique was ignored
ago 14, 2024 5:41:37 PM com.jme3.material.plugins.J3MLoader readTechnique
WARNING: Fixed function technique 'Default' was ignored for material Common/MatDefs/Terrain/HeightBasedTerrain.j3md
In fact, the definition of a technique in the HeightBasedTerrain.j3md file is incomplete and I believe it can be removed.
By removing the empty technique block, the warning log message no longer appears.
If you agree, I will create a PR.
Here is the corrected file:
MaterialDef Terrain {
MaterialParameters {
...
}
Technique {
VertexShader GLSL100: MatDefs/Terrain/HeightBasedTerrain.vert
FragmentShader GLSL100: MatDefs/Terrain/HeightBasedTerrain.frag
WorldParameters {
WorldViewProjectionMatrix
WorldMatrix
NormalMatrix
}
}
// -- This definition block can be removed
//Technique {
//}
}
Edit:
The same problem appears in the Terrain.j3md file
Metadata
Metadata
Assignees
Labels
No labels