当前位置: 首页 > news >正文

做古风人物小图的网站或软件个人网页设计论文免费

做古风人物小图的网站或软件,个人网页设计论文免费,图书馆管理网站建设logo,建立网站的是什么人qml实现的水波纹特效 1.横向波纹效果2.另一种效果#xff08;纵向波纹#xff09; 一直以来使用c qt如果要实现一些高级特效比如水波纹效果都难度比较大#xff0c;但是使用qt quick难度就会小很多。这里借鉴一些网友的思路简单实现一下水波纹效果。主要思路就是波浪的形成是… qml实现的水波纹特效 1.横向波纹效果2.另一种效果纵向波纹 一直以来使用c qt如果要实现一些高级特效比如水波纹效果都难度比较大但是使用qt quick难度就会小很多。这里借鉴一些网友的思路简单实现一下水波纹效果。主要思路就是波浪的形成是基于sin曲线以此来影响纹理坐标的颜色然后加上时间动画不断改变曲线的坐标从而达到一个波动效果。 1.横向波纹效果 Window {visible: truewidth: 800height: 600title: Water Ripple EffectImage {id: sourceImgwidth: 800height: 600source: qrc:/12.png}ShaderEffectSource {id: shaderSourcesourceItem: sourceImglive: true}ShaderEffect {id: waterEffectanchors.fill: parentproperty variant sourceTexture: shaderSourceproperty real frequency: 10property real amplitude: 0.04property real time: 0.0NumberAnimation on time {from: 0.0to: Math.PI*2duration: 1000loops: Animation.Infinite}fragmentShader: varying highp vec2 qt_TexCoord0;uniform sampler2D sourceTexture;uniform highp float frequency;uniform highp float amplitude;uniform highp float time;void main() {highp vec2 pulse sin(time - frequency * qt_TexCoord0);highp vec2 coord qt_TexCoord0 amplitude * vec2(pulse.x, -pulse.x);gl_FragColor texture2D(sourceTexture, coord);}} }效果如下-波涛汹涌 2.另一种效果纵向波纹 Window {visible: truewidth: 800height: 600title: Water Ripple EffectImage {id: sourceImgwidth: 800height: 600source: qrc:/12.png}ShaderEffectSource {id: shaderSourcesourceItem: sourceImglive: true}ShaderEffect {id: waterEffectanchors.fill: parentproperty variant sourceTexture: shaderSourceproperty real frequency: 10property real amplitude: 0.08property real time: 0.0NumberAnimation on time {from: 0.0to: Math.PI * 2duration: 1000loops: Animation.Infinite}fragmentShader: varying highp vec2 qt_TexCoord0;uniform sampler2D sourceTexture;uniform highp float frequency;uniform highp float amplitude;uniform highp float time;void main() {highp vec2 uv qt_TexCoord0;highp float wave sin(uv.y * frequency time) * amplitude;uv.x wave;gl_FragColor texture2D(sourceTexture, uv);}} }效果-树的摇曳 修改下频率和振幅效果 property real frequency: 60 property real amplitude: 0.02这样看起来是不是有点波光粼粼的感觉了。挺有趣的~0…0 代码链接奉上感兴趣的可以研究玩玩 波纹效果代码地址 作者费码程序猿 欢迎技术交流QQ255895056 转载请注明出处如有不当欢迎指正
http://www.dnsts.com.cn/news/208463.html

相关文章:

  • 厦门网站设计建设项链seo关键词
  • id创建网站如何推广一个平台
  • 一个网站绑定两个域名找手工活做注册网站
  • 北京网站建设服务公司怎样 管理网站
  • 唐山的做网站的企业网站群建设厂家
  • 太仓建设工程网站本机号码一键登录
  • 网站建设结项报告网站的建设目标是什么
  • 用服务器建立网站吗凡科网站怎么做
  • 在线借贷网站建设网站开发的背景是指什么
  • 免费网站怎么赚钱wordpress翻译文件
  • 佛山网站建设咨询wordpress主题里加广告
  • 淘宝客网站建设难度大吗如何提高网站的点击率
  • 建设银行企业网上银行网站wordpress上传漏洞拿shell
  • 响应式网站设计思路触摸网站手机
  • 网站建设与管理 试题做节约用水海报的网站
  • 网站开发工程师是什么意思宁波网站建设zj95
  • 云和建设局网站上海圣品科技 做网站
  • 网站推广成本做任务能赚钱的网站有哪些
  • 长基建站wordpress怎么自动生成内链
  • 洛可可设计公司企业文化网站网络推广优化
  • 使用国外空间的网站wordpress禁止修订
  • 建设学分银行网站策划书邢台seo价格
  • 网站建设相关资料整理的重要性wordpress伪静态插件
  • 福田产品设计南宁seo渠道哪家好
  • wordpress获取站点链接兰州网站建设实验总结
  • 如何建企业网站新手怎么学做电商
  • 网站设计公司 国际学编程要什么学历
  • 怎么做创业网站网站开发立项报告
  • 电子商务网站建设前期规划方案建网站义乌
  • 云主机网站网站怎么弄实名制认证