升级6.4.升级水,升级天气
This commit is contained in:
@@ -34,7 +34,10 @@ namespace WaveHarmonic.Crest
|
||||
|
||||
internal override void RecalculateBounds()
|
||||
{
|
||||
throw new System.NotImplementedException();
|
||||
var transform = _Input.transform;
|
||||
var scale = transform.lossyScale.XZ();
|
||||
scale = Helpers.RotateAndEncapsulateXZ(scale, transform.rotation.eulerAngles.y);
|
||||
_Bounds = new(_Input.transform.position, scale.XNZ());
|
||||
}
|
||||
|
||||
internal override void Draw(Lod lod, Component component, CommandBuffer buffer, RenderTargetIdentifier target, int slices)
|
||||
@@ -45,7 +48,7 @@ namespace WaveHarmonic.Crest
|
||||
wrapper.SetVector(ShaderIDs.s_TextureSize, transform.lossyScale.XZ());
|
||||
wrapper.SetVector(ShaderIDs.s_TexturePosition, transform.position.XZ());
|
||||
wrapper.SetVector(ShaderIDs.s_TextureRotation, rotation);
|
||||
wrapper.SetVector(ShaderIDs.s_Resolution, new(_Texture.width, _Texture.height));
|
||||
wrapper.SetVector(ShaderIDs.s_TextureResolution, new(_Texture.width, _Texture.height));
|
||||
wrapper.SetVector(ShaderIDs.s_Multiplier, _Multiplier);
|
||||
wrapper.SetFloat(ShaderIDs.s_FeatherWidth, _Input.FeatherWidth);
|
||||
wrapper.SetTexture(ShaderIDs.s_Texture, _Texture);
|
||||
|
||||
Reference in New Issue
Block a user