实现分析:这其实是一个四色角度渐变图像,加了一个角度值的关键帧动画,上图是一个边框贴图,下图是个实体贴图: 思路:写一个四色角度渐变的shader,shader公开一个角度属性用于控制渐变角度,通过代码不停变换角度即可实现,下面给出详细的步骤,Unity版本:2021.3.23f1c1 Shader "Custom/FourColorAngleGradient" { Properties { _MainTex("Texture", 2D) = "white" {} _Color0("Color 0", Color) = (1, 0, 0, 1) _Color90("Color 90", Color) = (0, 1, 0, 1) _Color180("Color 180", Color) = (0, 0, 1, 1) _Color270("Color 270", Color) = (1, 1, 0, 1) _GradientAngle("Gradient Angle", Range(-180, 180)) = 0.0 } SubShader { Tags {...
Is this you? As a journalist, you can create a free Muck Rack account to customize your profile, list your contact preferences, and upload a portfolio of your best work.
Claim your profile
Get in touch with float
Contact float, search articles and posts on X, monitor coverage, and track replies from one place.
Learn more about Muck Rack