updated samples to use the new shader system

some bugfixes
This commit is contained in:
devZoGok
2021-11-10 20:23:15 +02:00
parent ec8dd7ac1e
commit 3cce34310f
12 changed files with 40 additions and 20 deletions
+2 -2
View File
@@ -75,8 +75,8 @@ int main(){
* and frame number.
*/
KeyframeChannel kcL;
kcL.animatable = leftMat;
kcL.type = KeyframeChannel::DIFFUSE_COLOR_X;
kcL.animatable = leftMat->getUniform("diffuseColor");
kcL.type = KeyframeChannel::UNIFORM_1;
kcL.keyframes = vector<Keyframe>({
KeyframeChannel::createKeyframe(Keyframe::LINEAR, 1, 0),
KeyframeChannel::createKeyframe(Keyframe::LINEAR, 0, 1)