天空盒和地板
This commit is contained in:
@@ -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
|
||||
@@ -0,0 +1,10 @@
|
||||
fileFormatVersion: 2
|
||||
guid: d8ff3a33b255abf4fb6d14d5cd8eccab
|
||||
ShaderImporter:
|
||||
externalObjects: {}
|
||||
defaultTextures: []
|
||||
nonModifiableTextures: []
|
||||
preprocessorOverride: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Reference in New Issue
Block a user