升级水插件
This commit is contained in:
@@ -20,6 +20,7 @@ RWTexture2DArray<float2> _Crest_Target;
|
||||
CBUFFER_START(CrestPerMaterial)
|
||||
int _Crest_Blend;
|
||||
float _Crest_Weight;
|
||||
float2 _Crest_Multiplier;
|
||||
float2 _Crest_TextureSize;
|
||||
float2 _Crest_TexturePosition;
|
||||
float2 _Crest_TextureRotation;
|
||||
@@ -53,6 +54,8 @@ void Execute(uint3 id)
|
||||
source = source * 2.0 - 1.0;
|
||||
}
|
||||
|
||||
source *= _Crest_Multiplier;
|
||||
|
||||
if (_Crest_Blend == m_CrestBlendAlpha)
|
||||
{
|
||||
weight *= saturate(length(source));
|
||||
|
||||
Reference in New Issue
Block a user