GPU优化

This commit is contained in:
SoulliesOfficial
2026-02-27 08:21:00 -05:00
parent 0109878661
commit a635ec4221
872 changed files with 197615 additions and 2054 deletions

View File

@@ -0,0 +1,15 @@
#ifndef CUSTOM_LIGHTING_INCLUDED
#define CUSTOM_LIGHTING_INCLUDED
void CalculateMainLight_float(float3 WorldPos, out float3 Direction, out float3 Color) {
#ifdef SHADERGRAPH_PREVIEW
Direction = float3(0.5, 0.5, 0);
Color = 1;
#else
Light mainLight = GetMainLight(0);
Direction = mainLight.direction;
Color = mainLight.color;
#endif
}
#endif