升级水插件

This commit is contained in:
2026-01-08 22:30:55 +08:00
parent febff82d24
commit ca68084264
415 changed files with 18138 additions and 7134 deletions

View File

@@ -0,0 +1,42 @@
// Crest Water System
// Copyright © 2024 Wave Harmonic. All rights reserved.
Shader "Hidden/Crest/Legacy/CaptureShadowMatrices"
{
SubShader
{
Blend Off
ColorMask 0
Cull Off
ZTest Always
ZWrite Off
Pass
{
HLSLPROGRAM
#pragma target 4.5
#pragma vertex Vertex
#pragma fragment Fragment
#include "Packages/com.unity.render-pipelines.core/ShaderLibrary/Common.hlsl"
RWStructuredBuffer<float4x4> _Crest_WorldToShadow;
float4x4 unity_WorldToShadow[4];
float4 Vertex(uint id : SV_VertexID) : SV_POSITION
{
return GetFullScreenTriangleVertexPosition(id);
}
float4 Fragment(float4 pos : SV_POSITION) : SV_Target
{
_Crest_WorldToShadow[0] = unity_WorldToShadow[0];
_Crest_WorldToShadow[1] = unity_WorldToShadow[1];
_Crest_WorldToShadow[2] = unity_WorldToShadow[2];
_Crest_WorldToShadow[3] = unity_WorldToShadow[3];
return 0;
}
ENDHLSL
}
}
}

View File

@@ -0,0 +1,9 @@
fileFormatVersion: 2
guid: 17feb724c7e004b4e8e418931db7eff3
ShaderImporter:
externalObjects: {}
defaultTextures: []
nonModifiableTextures: []
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,51 @@
// Crest Water System
// Copyright © 2024 Wave Harmonic. All rights reserved.
Shader "Hidden/Crest/Legacy/ForceShadows"
{
CGINCLUDE
#pragma vertex Vertex
#pragma fragment Fragment
fixed4 Vertex(fixed4 v : POSITION) : SV_POSITION
{
return 0;
}
fixed4 Fragment(fixed4 i : SV_POSITION) : SV_Target
{
return 0;
}
ENDCG
SubShader
{
ZTest Always
ZWrite Off
ColorMask 0
Pass
{
Tags
{
"LightMode" = "ForwardBase"
}
CGPROGRAM
#pragma multi_compile_fwdbase
ENDCG
}
Pass
{
Tags
{
"LightMode" = "ForwardAdd"
}
CGPROGRAM
#pragma multi_compile_fwdadd_fullshadows
ENDCG
}
}
}

View File

@@ -0,0 +1,9 @@
fileFormatVersion: 2
guid: c9f384b6b84e943ed83161cb82d95b2e
ShaderImporter:
externalObjects: {}
defaultTextures: []
nonModifiableTextures: []
userData:
assetBundleName:
assetBundleVariant: