框架中的变色光

Color Shifting Light in the Aframe

我想在 Aframe 场景中对光线进行颜色偏移。

如果我想设置灯光强度的动画,我会添加

 animation__intensity=property: light.intensity; from: 0.5; to: 1; dur: 100; dir: alternate; loop: true;

所以我的想法是,如果我想对光线进行色移,我会这样做

 animation__color=property: light.color; from: red; to: blue; dur: 100; dir: alternate; loop: true;

但是,这个方法行不通。有谁知道如何解决这个问题?谢谢。

颜色 属性 应作为 rgb 向量进行寻址,如下所示:

animation="property: light.color; from:rgb(200, 70, 30); to:rgb(0, 30, 180); dur: 1500; loop:true; easings: easeInOutSine; dir: alternate; autoplay: true"

故障here