如何在 A-Frame 中重复或平铺纹理?

How to repeat or tile a texture in A-Frame?

我有一个material

 <a-entity material="src:#imgGround; repeat: 400"></a-entity>

我想重复或平铺地面,但它不起作用。如何在 A 帧中重复或平铺纹理?

我也想为置换贴图和法线贴图做这个:

<a-entity id="ground_model" geometry="primitive:circle;radius:1" position="0 0 0" rotation="-90 0 0" scale="30 30 30" color="green" material="src:#imgGround;flatShading:false;transparent:false;repeat:44;normalMap:#imgGroundN;displacementMap:#imgGroundZ">

https://aframe.io/docs/master/components/material.html#built_in_materials_repeat

一次重复需要 两个 个值(用于 U 和 V 映射,或 X 和 Y),而不是一个。

<a-entity material="src:#imgGround; repeat: 20 20"></a-entity>

https://aframe.io/docs/master/components/material.html#built_in_materials_normaltexturerepeat

与置换贴图和法线贴图类似,有特定的重复属性:

<a-entity material="displacementMap:#imgGroundZ; displacementTextureRepeat: 4 4">