Problem with "m_Color"

This is a piece of a pong-like game I plan on creating.

Material mat_p1 = new Material(assetManager, “Common/MatDefs/Misc/SimpleTextured.j3md”);

mat_p1.setColor(“m_Color”, ColorRGBA.Blue);


paddle1.setLocalTranslation(10.0f, 5.0f, 5.0f);

Material mat_p2 = new Material(assetManager, “Common/MatDefs/Misc/SimpleTextured.j3md”);

mat_p2.setColor(“m_Color”, ColorRGBA.Red);


paddle2.setLocalTranslation(-10.0f, 5.0f, 5.0f);

Material mat_ball = new Material(assetManager, “Common/MatDefs/Misc/SimpleTextured.j3md”);

mat_ball.setColor(“m_Color”, ColorRGBA.White);


ball.setLocalTranslation(0.0f, 5.0f, 5.0f);

When compiling my program in NetBeans 6.9.1, I get the following error:

“Material parameter is not defined: m_Color”

nvrmind, I was using “SimpleTextured” rather than “SolidColor” :stuck_out_tongue:

You know, this very thing has prompted me to almost want to merge all the diffuse color attributes across a set of my own shaders. It gets sorta tricky remembering which “m_Color”, “m_ColorMap” and “m_DiffuseColor” goes with which shader. Sad part is I think I’ve already got it mostly memorized… But oh how many times I’ve looked at those 3 shaders…

Glad you caught your error though, I’m just ranting a little XD