描述:使用Shader将图片进行水平/竖直镜像翻转
资源类型:unitypackage,导入即可使用
内容:
包含shader,material,示例场景
可以在运行时自主对图形进行水平或者竖直镜像翻转,也可同时水平和竖直镜像翻转
对unity版本没有太高要求。
Shader中使用顶点着色器,首先坐标转换成UV坐标,然后使用使用镜像公式对坐标进行镜像处理。
Description: Use Shader to horizontally/vertically mirror and flip the image
Resource type: Unitypackage, can be imported and used immediately
Content:
Including shaders, materials, and sample scenes
It is possible to autonomously mirror and flip graphics horizontally or vertically during runtime, as well as simultane
2024-06-18 09:36:23
143KB
unity
1