Hi i have a planebuffer geometry, that i append vertices to manually to load a heightmap.
In this scene construction i have some, Terrain, and shadermaterial...
const uniforms = {
map: {type: "t", value: texture},
scale: {type: "f", value: 10},
phongMaterial: {
value: {
position: new Vector3(0, 1, 0),
ambientColor: new Vector3(0.5, 0.5, 0.5),
diffuseColor: new Vector3(0.5, 0.5, 0.5),
specularColor: new Vector3(1, 1, 1),
ambientStrength: 0.3,
specularStrength: 0.5,
shininess: 256,
constant: 0.5,
linear: 0.5,
quadratic: 0.5
}
}
};
Um, what am i doing wrong with the material application? is this a perspective camera issue. I'm happy to read docs, but just not sure where to really look