TestCartoonEdge: more reliable way to detect lighting material
This commit is contained in:
parent
784cfddb21
commit
83ddf9d7c3
@ -80,7 +80,7 @@ public class TestCartoonEdge extends SimpleApplication {
|
||||
}else if (spatial instanceof Geometry){
|
||||
Geometry g = (Geometry) spatial;
|
||||
Material m = g.getMaterial();
|
||||
if (m.getMaterialDef().getName().equals("Phong Lighting")){
|
||||
if (m.getMaterialDef().getMaterialParam("UseMaterialColors") != null) {
|
||||
Texture t = assetManager.loadTexture("Textures/ColorRamp/toon.png");
|
||||
// t.setMinFilter(Texture.MinFilter.NearestNoMipMaps);
|
||||
// t.setMagFilter(Texture.MagFilter.Nearest);
|
||||
|
Loading…
x
Reference in New Issue
Block a user