scene update

This commit is contained in:
kivss
2025-11-23 23:19:11 +08:00
parent 0804b43255
commit 6639fbb164
86 changed files with 48451 additions and 33 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