Hub lights and detail

This commit is contained in:
szczuras4
2026-01-19 22:21:06 +01:00
parent 3520770331
commit 09dfdfa066
114 changed files with 36335 additions and 393 deletions

View File

@@ -57,10 +57,10 @@ Material:
m_Offset: {x: 0, y: 0}
m_Ints: []
m_Floats:
- _Exposure: 0.57
- _Exposure: 0.89
- _Rotation: 53
m_Colors:
- _Color: {r: 1, g: 1, b: 1, a: 1}
- _Tint: {r: 0.7735849, g: 0.34782913, b: 0.105820596, a: 1}
- _Tint: {r: 0.77254903, g: 0.27221045, b: 0.10588234, a: 1}
m_BuildTextureStacks: []
m_AllowLocking: 1

View File

@@ -1,9 +1,10 @@
Shader "Custom/URP/Unlit_Panorama_NoFog"
Shader "Custom/URP/FakeSky_NoClip"
{
Properties
{
_BaseMap ("Texture", 2D) = "white" {}
_Color ("Color Tint", Color) = (1,1,1,1)
[MainTexture] _BaseMap ("Texture (Panorama)", 2D) = "white" {}
[MainColor] _Color ("Color Tint", Color) = (1,1,1,1)
_Intensity ("Brightness / Emission", Float) = 1.0
}
SubShader
@@ -11,8 +12,9 @@ Shader "Custom/URP/Unlit_Panorama_NoFog"
Tags
{
"RenderPipeline"="UniversalRenderPipeline"
"RenderType"="Background"
"Queue"="Background"
"RenderType"="Opaque"
"PreviewType"="Skybox"
}
Pass
@@ -20,9 +22,10 @@ Shader "Custom/URP/Unlit_Panorama_NoFog"
Name "Unlit"
Tags { "LightMode"="UniversalForward" }
ZWrite Off
Cull Off
Fog { Mode Off }
ZWrite Off
// Wa¿ne: ZTest LEqual w po³¹czeniu z trikiem w Vertex shaderze
ZTest LEqual
HLSLPROGRAM
#pragma vertex vert
@@ -45,23 +48,33 @@ Shader "Custom/URP/Unlit_Panorama_NoFog"
TEXTURE2D(_BaseMap);
SAMPLER(sampler_BaseMap);
float4 _BaseMap_ST;
float4 _Color;
CBUFFER_START(UnityPerMaterial)
float4 _BaseMap_ST;
float4 _Color;
float _Intensity;
CBUFFER_END
Varyings vert (Attributes v)
{
Varyings o;
o.positionHCS = TransformObjectToHClip(v.positionOS.xyz);
// --- MAGICZNA LINIJKA ---
// To sprawia, ¿e obiekt jest renderowany na maksymalnej g³êbokoœci (jak Skybox).
// Dziêki temu Far Clip Plane kamery go nie utnie, nawet jak jest ogromny.
o.positionHCS.z = o.positionHCS.w;
// ------------------------
o.uv = TRANSFORM_TEX(v.uv, _BaseMap);
return o;
}
half4 frag (Varyings i) : SV_Target
{
half4 col = SAMPLE_TEXTURE2D(_BaseMap, sampler_BaseMap, i.uv);
return col * _Color;
half4 texColor = SAMPLE_TEXTURE2D(_BaseMap, sampler_BaseMap, i.uv);
return texColor * _Color * _Intensity;
}
ENDHLSL
}
}
}
}

View File

@@ -18,7 +18,7 @@ Material:
m_LightmapFlags: 2
m_EnableInstancingVariants: 0
m_DoubleSidedGI: 0
m_CustomRenderQueue: -1
m_CustomRenderQueue: 1000
stringTagMap: {}
disabledShaderPasses:
- MOTIONVECTORS
@@ -128,6 +128,7 @@ Material:
- _Glossiness: 0
- _GlossyReflections: 0
- _ImageType: 0
- _Intensity: 1.09
- _Layout: 0
- _Mapping: 1
- _Metallic: 0
@@ -147,7 +148,7 @@ Material:
- _ZWrite: 1
m_Colors:
- _BaseColor: {r: 1, g: 1, b: 1, a: 1}
- _Color: {r: 1, g: 1, b: 1, a: 1}
- _Color: {r: 1, g: 0.65499705, b: 0.28773582, a: 1}
- _EmissionColor: {r: 1, g: 1, b: 1, a: 1}
- _SpecColor: {r: 0.19999996, g: 0.19999996, b: 0.19999996, a: 1}
- _Tint: {r: 0.5, g: 0.5, b: 0.5, a: 0.5}

View File

@@ -19,8 +19,8 @@ LightingSettings:
m_LightmapMaxSize: 1024
m_LightmapSizeFixed: 1
m_UseMipmapLimits: 1
m_BakeResolution: 40
m_Padding: 8
m_BakeResolution: 45
m_Padding: 6
m_LightmapCompression: 0
m_AO: 1
m_AOMaxDistance: 0.6