UniformAnimator QML Type
유니폼애니메이터 유형은 ShaderEffect.. . 더보기...
Import Statement: | import QtQuick |
Inherits: |
프로퍼티
- uniform : string
상세 설명
Animator 유형은 일반 애니메이션 유형과 다릅니다. 애니메이터를 사용하는 경우 렌더 스레드에서 애니메이션을 실행할 수 있으며 애니메이션이 완료되면 속성 값이 끝으로 점프합니다.
유니폼을 정의하는 QML 속성 값은 애니메이션이 완료된 후에 업데이트됩니다.
다음 스니펫은 UniformAnimator를 ShaderEffect 항목과 함께 사용하는 방법을 보여줍니다.
ShaderEffect { id: shader width: 50 height: 50 property variant t; UniformAnimator { target: shader uniform: "t" from: 0 to: 1 duration: 1000 running: true } fragmentShader: "qrc:shader.frag.qsb" }
on
키워드를 사용하여 UniformAnimator를 ShaderEffect 인스턴스의 유니폼에 직접 연결할 수도 있습니다.
ShaderEffect { width: 50 height: 50 property variant t; UniformAnimator on t { from: 0 to: 1 duration: 1000 } fragmentShader: "qrc:shader.frag.qsb" }
ShaderEffect 및 ShaderEffectSource 을참조하세요 .
속성 문서
uniform : string |
이 프로퍼티에는 애니메이션을 적용할 유니폼의 이름이 저장됩니다.
유니폼의 값은 대상 ShaderEffect 의 프로퍼티에 모두 해당해야 하며, 조각 또는 버텍스 셰이더에서 float
유형의 유니폼이어야 합니다.
© 2025 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.