Model-Item Color
Hello All,
When I change a model-item color, the new color cannot fully replace the color set in the 3D model.

Here for example the the sheet metal cover was red in the 3D model and now that I've changed the model-item color to white, the red color still is lightly visible.

I can change the color using the tml text widget and a shader, but I am not experience enough to add a shadow in the shader.
So my question has two parts:
- Can someone share a shader code for color changes that also includes a shadow?
- Can I change the color completely in the experience without using a shader?
Here is the color change shader code that I am using:
<script name="color_change" type="x-shader/x-vertex">
attribute vec3 vertexPosition;
attribute vec3 vertexNormal;
varying vec3 N;
varying vec4 vertexCoord;
uniform mat4 modelMatrix;
uniform mat4 modelViewProjectionMatrix;
void main() {
vec4 vp = vec4(vertexPosition, 1.0);
gl_Position = modelViewProjectionMatrix * vp;
vertexCoord = modelMatrix*vp;
// the surface normal vector
N = vec3(normalize(modelMatrix* vec4(vertexNormal,0.0)));
}
</script>
<script name="color_change" type="x-shader/x-fragment">
precision mediump float;
// user defined uniforms
uniform float r;
uniform float g;
uniform float b;
void main() {
vec4 color = vec4(r,g,b,1);
gl_FragColor = color;
}
</script>
Thank you very much,
Best wishes,
Alex

