Skip to content

Commit

Permalink
Grpahics changes and converter variant changes
Browse files Browse the repository at this point in the history
  • Loading branch information
GBirch33 committed Oct 30, 2023
1 parent cd9a20d commit fad06ef
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 24 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,15 @@ public override Material GenerateMaterial(int materialIndex, GLTFast.Schema.Mate

if (useSceneShader)
{
foreach (var keywordName in mat.shaderKeywords)
{
mat.DisableKeyword(keywordName);
}

// Enable Forward+ and soft shadows
mat.EnableKeyword("_FORWARD_PLUS");
mat.EnableKeyword("_NORMALMAP");
mat.EnableKeyword("_EMISSION");
mat.EnableKeyword("_ADDITIONAL_LIGHT_SHADOWS");
mat.EnableKeyword("_MAIN_LIGHT_SHADOWS_CASCADE");
mat.EnableKeyword("_SHADOWS_SOFT");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,25 +32,25 @@ MonoBehaviour:
m_FsrSharpness: 0.92
m_EnableLODCrossFade: 1
m_LODCrossFadeDitheringType: 1
m_ShEvalMode: 0
m_ShEvalMode: 3
m_MainLightRenderingMode: 1
m_MainLightShadowsSupported: 1
m_MainLightShadowmapResolution: 2048
m_AdditionalLightsRenderingMode: 1
m_AdditionalLightsPerObjectLimit: 4
m_AdditionalLightShadowsSupported: 0
m_AdditionalLightsShadowmapResolution: 512
m_AdditionalLightShadowsSupported: 1
m_AdditionalLightsShadowmapResolution: 4096
m_AdditionalLightsShadowResolutionTierLow: 128
m_AdditionalLightsShadowResolutionTierMedium: 256
m_AdditionalLightsShadowResolutionTierHigh: 512
m_ReflectionProbeBlending: 0
m_ReflectionProbeBoxProjection: 0
m_ShadowDistance: 50
m_ShadowCascadeCount: 1
m_ShadowDistance: 200
m_ShadowCascadeCount: 4
m_Cascade2Split: 0.25
m_Cascade3Split: {x: 0.1, y: 0.3}
m_Cascade4Split: {x: 0.067, y: 0.2, z: 0.467}
m_CascadeBorder: 0.1
m_Cascade4Split: {x: 0.049999997, y: 0.14999999, z: 0.29999998}
m_CascadeBorder: 0.42857143
m_ShadowDepthBias: 1
m_ShadowNormalBias: 1
m_AnyShadowsSupported: 1
Expand All @@ -62,7 +62,7 @@ MonoBehaviour:
m_AdditionalLightsCookieFormat: 3
m_UseSRPBatcher: 1
m_SupportsDynamicBatching: 0
m_MixedLightingSupported: 1
m_MixedLightingSupported: 0
m_SupportsLightCookies: 1
m_SupportsLightLayers: 0
m_DebugLevel: 0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,7 @@ MonoBehaviour:
m_EditorClassIdentifier:
k_AssetVersion: 3
m_RenderingLayerNames:
- Light Layer default
- Light Layer 1
- Light Layer 2
- Light Layer 3
- Light Layer 4
- Light Layer 5
- Light Layer 6
- Light Layer 7
- Default
m_ValidRenderingLayers: 255
lightLayerName0: Light Layer default
lightLayerName1: Light Layer 1
Expand All @@ -32,7 +25,7 @@ MonoBehaviour:
lightLayerName6: Light Layer 6
lightLayerName7: Light Layer 7
m_StripDebugVariants: 1
m_StripUnusedPostProcessingVariants: 0
m_StripUnusedPostProcessingVariants: 1
m_StripUnusedVariants: 1
m_StripUnusedLODCrossFadeVariants: 1
m_StripScreenCoordOverrideVariants: 1
Expand Down
13 changes: 6 additions & 7 deletions asset-bundle-converter/ProjectSettings/GraphicsSettings.asset
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
--- !u!30 &1
GraphicsSettings:
m_ObjectHideFlags: 0
serializedVersion: 14
serializedVersion: 15
m_Deferred:
m_Mode: 1
m_Shader: {fileID: 69, guid: 0000000000000000f000000000000000, type: 0}
Expand All @@ -13,9 +13,6 @@ GraphicsSettings:
m_ScreenSpaceShadows:
m_Mode: 1
m_Shader: {fileID: 64, guid: 0000000000000000f000000000000000, type: 0}
m_LegacyDeferred:
m_Mode: 1
m_Shader: {fileID: 63, guid: 0000000000000000f000000000000000, type: 0}
m_DepthNormals:
m_Mode: 1
m_Shader: {fileID: 62, guid: 0000000000000000f000000000000000, type: 0}
Expand Down Expand Up @@ -49,10 +46,11 @@ GraphicsSettings:
m_LightmapStripping: 1
m_FogStripping: 1
m_InstancingStripping: 0
m_BrgStripping: 0
m_LightmapKeepPlain: 0
m_LightmapKeepDirCombined: 0
m_LightmapKeepDynamicPlain: 0
m_LightmapKeepDynamicDirCombined: 1
m_LightmapKeepDynamicDirCombined: 0
m_LightmapKeepShadowMask: 0
m_LightmapKeepSubtractive: 0
m_FogKeepLinear: 1
Expand All @@ -65,5 +63,6 @@ GraphicsSettings:
m_LogWhenShaderIsCompiled: 0
m_SRPDefaultSettings:
UnityEngine.Rendering.Universal.UniversalRenderPipeline: {fileID: 11400000, guid: 235a1eb1677011447b7e019d325a8a0e, type: 2}
m_CameraRelativeLightCulling: 0
m_CameraRelativeShadowCulling: 0
m_LightProbeOutsideHullStrategy: 0
m_CameraRelativeLightCulling: 1
m_CameraRelativeShadowCulling: 1

0 comments on commit fad06ef

Please sign in to comment.