Can a three.js material have separate repeat values for a bump map and a texture map?

前端 未结 2 493
囚心锁ツ
囚心锁ツ 2020-12-10 00:09

I\'m trying to break up the repetition in my texture by applying a bump map which repeats much less frequently. Unfortunately, it seems to take on the repeat value of \'land

2条回答
  •  遥遥无期
    2020-12-10 00:43

    No. The offset and repeat values default to one of them:

    // uv repeat and offset setting priorities
    //  1. color map
    //  2. specular map
    //  3. displacement map
    //  4. normal map
    //  5. bump map
    //  5. roughness map
    //  5. metalness map
    //  6. alpha map
    //  7. emissive map
    

    In your case, that would be the landTexture settings.

    The workaround is to modify your textures, or create a custom ShaderMaterial.

    EDIT: The exception is light map and ambient occlusion map, which each use the second set of UVs. This allows the other textures to be of higher detail than the light/AO map.

    three.js r.84

提交回复
热议问题