Aframe中的变色灯
我想在一帧场景中改变灯光的颜色 如果我想设置灯光强度的动画,我将添加Aframe中的变色灯,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: altern
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"
故障谢谢您的回复。你知道为什么它只适用于RGB值和十六进制代码,而不适用于HTML颜色名称吗?因为对象上的颜色偏移与颜色名称()一起工作?再次感谢。我猜这样更容易解析并将值传递给动画组件(只是引擎盖下的anime.js)。文档说颜色名称应该在动画中起作用。但是在页面更高的属性表下面键入:
现在只支持tweening isRawProperty color XYZ/RGB向量值的颜色。