Hello Three js Team,
I am using RawShaderMaterial in my example and also in some meshes i am using the MeshLambertMaterial.
I see the objects with the MeshLambertMaterial are producing the shadows very well.
What steps i need to follow to bring the shadow with the objects that are using RawShaderMateiral.
I am using a directional light in my example and here is my RawShaderMaterial code
new THREE.RawShaderMaterial({
uniforms: {
green: {
value: new THREE.Color("green")
},
red: {
value: new THREE.Color("red")
},
blue: {
value: new THREE.Color("blue")
},
yellow: {
value: new THREE.Color("yellow")
},
maxSlopeDegrees: {
value: maxSlopeDegrees
},
inverterCount: {
value: inverterCount
},
threshold: {
value: threshold
},
renderMode: {
value: renderMode
},
renderModeVertex: {
value: renderMode
},
defaultColor: {
value: new THREE.Color("blue")
},
isModule: {
value: 1
},
},
vertexShader: vertexShader,
fragmentShader: fragmentShader,
side: THREE.DoubleSide,
transparent: true,
});
The object i making using the material having instancebuffergeometry and very small
I am attaching an screen shot but i am wondering also how i can bring shadow for each blue plate
I need an urjent help please.
Thanks