FetchLightmapValue.asset 7.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. %YAML 1.1
  2. %TAG !u! tag:unity3d.com,2011:
  3. --- !u!114 &11400000
  4. MonoBehaviour:
  5. m_ObjectHideFlags: 0
  6. m_CorrespondingSourceObject: {fileID: 0}
  7. m_PrefabInstance: {fileID: 0}
  8. m_PrefabAsset: {fileID: 0}
  9. m_GameObject: {fileID: 0}
  10. m_Enabled: 1
  11. m_EditorHideFlags: 0
  12. m_Script: {fileID: 11500000, guid: 78b2425a2284af743826c689403a4924, type: 3}
  13. m_Name: FetchLightmapValue
  14. m_EditorClassIdentifier:
  15. m_functionInfo: "// Made with Amplify Shader Editor v1.9.6.1\n// Available at the
  16. Unity Asset Store - http://u3d.as/y3X \n/*ASEBEGIN\nVersion=19601\nNode;AmplifyShaderEditor.Vector4Node;8;-500.423,19.56814;Float;False;Global;unity_LightmapST;unity_LightmapST;2;0;Fetch;True;0;0;0;False;0;False;0,0,0,0;0.5097654,0.5097654,0,0;0;5;FLOAT4;0;FLOAT;1;FLOAT;2;FLOAT;3;FLOAT;4\nNode;AmplifyShaderEditor.VertexToFragmentNode;10;368,-112;Inherit;False;False;False;1;0;FLOAT2;0,0;False;1;FLOAT2;0\nNode;AmplifyShaderEditor.SwizzleNode;4;-188.546,21.5814;Inherit;False;FLOAT2;0;1;2;3;1;0;FLOAT4;0,0,0,0;False;1;FLOAT2;0\nNode;AmplifyShaderEditor.SimpleMultiplyOpNode;5;-28.547,-122.4186;Inherit;False;2;2;0;FLOAT2;0,0;False;1;FLOAT2;0,0;False;1;FLOAT2;0\nNode;AmplifyShaderEditor.TextureCoordinatesNode;2;-528,-128;Inherit;False;1;-1;2;3;2;SAMPLER2D;;False;0;FLOAT2;1,1;False;1;FLOAT2;0,0;False;5;FLOAT2;0;FLOAT;1;FLOAT;2;FLOAT;3;FLOAT;4\nNode;AmplifyShaderEditor.CustomExpressionNode;19;1108.877,25.22512;Inherit;False;return
  17. float4(LIGHTMAP_HDR_MULTIPLIER, LIGHTMAP_HDR_EXPONENT, 0, 0)@;4;Create;0;URPDecodeInstruction;True;False;0;;False;0;1;FLOAT4;0\nNode;AmplifyShaderEditor.TexturePropertyNode;1;314.5027,-433.4464;Float;True;Global;unity_Lightmap;unity_Lightmap;0;0;Fetch;True;0;0;0;False;0;False;None;None;False;white;Auto;Texture2D;-1;0;2;SAMPLER2D;0;SAMPLERSTATE;1\nNode;AmplifyShaderEditor.FunctionSwitchByPipeline;20;1405.278,220.2255;Inherit;False;4;0;FLOAT4;0,0,0,0;False;3;FLOAT4;0,0,0,0;False;1;FLOAT4;0,0,0,0;False;2;FLOAT4;0,0,0,0;False;1;FLOAT4;0\nNode;AmplifyShaderEditor.DecodeLightmapHlpNode;6;1661.949,-191.024;Inherit;False;2;0;FLOAT4;0,0,0,0;False;1;FLOAT4;0,0,0,0;False;1;FLOAT3;0\nNode;AmplifyShaderEditor.StaticSwitch;13;981.1006,204.6251;Float;False;Property;_Keyword0;Keyword
  18. 0;1;0;Create;True;0;0;0;False;0;False;0;0;0;False;UNITY_LIGHTMAP_FULL_HDR;Toggle;2;Key0;Key1;Fetch;True;True;All;9;1;FLOAT4;0,0,0,0;False;0;FLOAT4;0,0,0,0;False;2;FLOAT4;0,0,0,0;False;3;FLOAT4;0,0,0,0;False;4;FLOAT4;0,0,0,0;False;5;FLOAT4;0,0,0,0;False;6;FLOAT4;0,0,0,0;False;7;FLOAT4;0,0,0,0;False;8;FLOAT4;0,0,0,0;False;1;FLOAT4;0\nNode;AmplifyShaderEditor.CustomExpressionNode;11;735.7104,-21.51056;Float;False;return
  19. SAMPLE_TEXTURE2D( unity_Lightmap, samplerunity_Lightmap, UV )@;4;Create;1;True;UV;FLOAT2;0,0;In;;Float;False;SampleLightmapHD;True;False;0;;False;1;0;FLOAT2;0,0;False;1;FLOAT4;0\nNode;AmplifyShaderEditor.Vector4Node;16;754.9202,321.7659;Float;False;Constant;_Vector1;Vector
  20. 1;3;0;Create;True;0;0;0;False;0;False;0,0,0,0;0,0,0,0;0;5;FLOAT4;0;FLOAT;1;FLOAT;2;FLOAT;3;FLOAT;4\nNode;AmplifyShaderEditor.SwizzleNode;9;-188.546,133.5814;Inherit;False;FLOAT2;2;3;2;3;1;0;FLOAT4;0,0,0,0;False;1;FLOAT2;0\nNode;AmplifyShaderEditor.FunctionSwitchByPipeline;12;1027.71,-224.5106;Inherit;False;4;0;COLOR;0,0,0,0;False;3;COLOR;0,0,0,0;False;1;FLOAT4;0,0,0,0;False;2;FLOAT4;0,0,0,0;False;1;COLOR;0\nNode;AmplifyShaderEditor.Vector4Node;18;322.9202,307.7659;Float;False;Constant;_Vector3;Vector
  21. 3;3;0;Create;True;0;0;0;False;0;False;34.49324,2.2,0,0;0,0,0,0;0;5;FLOAT4;0;FLOAT;1;FLOAT;2;FLOAT;3;FLOAT;4\nNode;AmplifyShaderEditor.SamplerNode;7;654.0723,-337.4277;Inherit;True;Property;_TextureSample0;Texture
  22. Sample 0;0;0;Create;True;0;0;0;False;0;False;-1;None;None;True;0;False;white;Auto;False;Object;-1;Auto;Texture2D;8;0;SAMPLER2D;;False;1;FLOAT2;0,0;False;2;FLOAT;0;False;3;FLOAT2;0,0;False;4;FLOAT2;0,0;False;5;FLOAT;1;False;6;FLOAT;0;False;7;SAMPLERSTATE;;False;6;COLOR;0;FLOAT;1;FLOAT;2;FLOAT;3;FLOAT;4;FLOAT3;5\nNode;AmplifyShaderEditor.SimpleAddOpNode;3;224,-32;Inherit;False;2;2;0;FLOAT2;0,0;False;1;FLOAT2;0,0;False;1;FLOAT2;0\nNode;AmplifyShaderEditor.Vector4Node;17;329.9202,94.76587;Float;False;Constant;_Vector2;Vector
  23. 2;3;0;Create;True;0;0;0;False;0;False;2,2.2,0,0;0,0,0,0;0;5;FLOAT4;0;FLOAT;1;FLOAT;2;FLOAT;3;FLOAT;4\nNode;AmplifyShaderEditor.StaticSwitch;15;602.9202,151.7659;Float;False;Property;_Keyword2;Keyword
  24. 2;2;0;Create;True;0;0;0;False;0;False;0;0;0;False;UNITY_LIGHTMAP_RGBM_ENCODING;Toggle;2;Key0;Key1;Fetch;True;True;All;9;1;FLOAT4;0,0,0,0;False;0;FLOAT4;0,0,0,0;False;2;FLOAT4;0,0,0,0;False;3;FLOAT4;0,0,0,0;False;4;FLOAT4;0,0,0,0;False;5;FLOAT4;0,0,0,0;False;6;FLOAT4;0,0,0,0;False;7;FLOAT4;0,0,0,0;False;8;FLOAT4;0,0,0,0;False;1;FLOAT4;0\nNode;AmplifyShaderEditor.Exposure;21;1792,64;Inherit;False;0;1;FLOAT;0\nNode;AmplifyShaderEditor.SimpleMultiplyOpNode;22;1984,-48;Inherit;False;2;2;0;FLOAT3;0,0,0;False;1;FLOAT;0;False;1;FLOAT3;0\nNode;AmplifyShaderEditor.FunctionSwitch;23;2192,-192;Inherit;False;Apply
  25. Exposure;True;1;2;-1;In 0;In 1;Object;-1;10;0;FLOAT3;0,0,0;False;1;FLOAT3;0,0,0;False;2;FLOAT;0;False;3;FLOAT;0;False;4;FLOAT;0;False;5;FLOAT;0;False;6;FLOAT;0;False;7;FLOAT;0;False;8;FLOAT;0;False;9;FLOAT;0;False;1;FLOAT3;0\nNode;AmplifyShaderEditor.FunctionOutput;0;2464,-192;Inherit;False;True;-1;Output;0;False;1;0;FLOAT3;0,0,0;False;1;FLOAT3;0\nWireConnection;10;0;3;0\nWireConnection;4;0;8;0\nWireConnection;5;0;2;0\nWireConnection;5;1;4;0\nWireConnection;20;0;13;0\nWireConnection;20;3;13;0\nWireConnection;20;1;19;0\nWireConnection;20;2;13;0\nWireConnection;6;0;12;0\nWireConnection;6;1;20;0\nWireConnection;13;1;15;0\nWireConnection;13;0;16;0\nWireConnection;11;0;10;0\nWireConnection;9;0;8;0\nWireConnection;12;0;7;0\nWireConnection;12;3;7;0\nWireConnection;12;1;11;0\nWireConnection;12;2;11;0\nWireConnection;7;0;1;0\nWireConnection;7;1;10;0\nWireConnection;3;0;5;0\nWireConnection;3;1;9;0\nWireConnection;15;1;17;0\nWireConnection;15;0;18;0\nWireConnection;22;0;6;0\nWireConnection;22;1;21;0\nWireConnection;23;0;6;0\nWireConnection;23;1;22;0\nWireConnection;0;0;23;0\nASEEND*/\n//CHKSM=4137249059C9C9A4FF069816993B041A6E3F8063"
  26. m_functionName:
  27. m_description: 'Fetches the value from the lightmap. Multiply the fetched value
  28. by the final fragment color. '
  29. m_additionalIncludes:
  30. m_additionalIncludes: []
  31. m_outsideIncludes: []
  32. m_additionalPragmas:
  33. m_additionalPragmas: []
  34. m_outsidePragmas: []
  35. m_additionalDirectives:
  36. m_validData: 0
  37. m_isDirty: 1
  38. m_moduleName: ' Additional Directives'
  39. m_independentModule: 1
  40. m_customEdited: 0
  41. m_additionalDirectives:
  42. - {fileID: 0}
  43. - {fileID: 0}
  44. - {fileID: 0}
  45. m_shaderFunctionDirectives: []
  46. m_nativeDirectives: []
  47. m_nativeDirectivesIndex: -1
  48. m_nativeDirectivesFoldout: 0
  49. m_directivesSaveItems:
  50. - LineType: 2
  51. LineValue: multi_compile _ LIGHTMAP_ON
  52. GUIDToggle: 0
  53. GUIDValue:
  54. ShowConditionals: 0
  55. VersionMin: 0
  56. VersionMax: 0
  57. Passes:
  58. Origin: 2
  59. - LineType: 2
  60. LineValue: multi_compile _ DYNAMICLIGHTMAP_ON
  61. GUIDToggle: 0
  62. GUIDValue:
  63. ShowConditionals: 0
  64. VersionMin: 0
  65. VersionMax: 0
  66. Passes:
  67. Origin: 2
  68. - LineType: 2
  69. LineValue: multi_compile _ DIRLIGHTMAP_COMBINED
  70. GUIDToggle: 0
  71. GUIDValue:
  72. ShowConditionals: 0
  73. VersionMin: 0
  74. VersionMax: 0
  75. Passes:
  76. Origin: 2
  77. m_nodeCategory: 3
  78. m_headerStyle: 1
  79. m_headerColor: {r: 1, g: 0.4, b: 0, a: 1}
  80. m_customNodeCategory:
  81. m_previewPosition: 0
  82. m_hidden: 0
  83. m_url: