Three.js: the error of using lightmap

Created on 24 Sep 2017  路  1Comment  路  Source: mrdoob/three.js

i use the lightmap to add shadow to the model,but the result is error,
the setting of js :
"mapLight" : "Q4.jpg",
and the setting of html:
for ( var i = 0; i < materials.length; i ++ ) {
materials[ i ].lightMapIntensity =0.75;
}
geometry.faceVertexUvs[ 1 ] = geometry.faceVertexUvs[ 0 ];
the result:
image1

i set down the lightMapIntensity,the result is normal ,but the shadow is disapperar:
image2

Most helpful comment

Lightmaps in three.js are treated as a source of light. They are purely additive to the total indirect diffuse light; they do not darken or attenuate light.

Only ambient occlusion maps (aoMap) darken; they attenuate total indirect diffuse light.

>All comments

Lightmaps in three.js are treated as a source of light. They are purely additive to the total indirect diffuse light; they do not darken or attenuate light.

Only ambient occlusion maps (aoMap) darken; they attenuate total indirect diffuse light.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

danieljack picture danieljack  路  3Comments

akshaysrin picture akshaysrin  路  3Comments

ghost picture ghost  路  3Comments

scrubs picture scrubs  路  3Comments

jack-jun picture jack-jun  路  3Comments