Blackbody.asset 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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: Blackbody
  14. m_EditorClassIdentifier:
  15. m_functionInfo: "// Made with Amplify Shader Editor v1.9.1\n// Available at the
  16. Unity Asset Store - http://u3d.as/y3X \n/*ASEBEGIN\nVersion=19100\nNode;AmplifyShaderEditor.FunctionInput;2;-421.5,-6;Inherit;False;Temp;1;0;False;1;0;FLOAT;1000;False;1;FLOAT;0\nNode;AmplifyShaderEditor.CustomExpressionNode;1;-266.5,0;Inherit;False;float3
  17. color = float3(255.0, 255.0, 255.0)@$color.x = 56100000. * pow(Temperature,(-3.0
  18. / 2.0)) + 148.0@$color.y = 100.04 * log(Temperature) - 623.6@$if (Temperature
  19. > 6500.0) color.y = 35200000.0 * pow(Temperature,(-3.0 / 2.0)) + 184.0@$color.z
  20. = 194.18 * log(Temperature) - 1448.6@$color = clamp(color, 0.0, 255.0)/255.0@$if
  21. (Temperature < 1000.0) color *= Temperature/1000.0@$return color@;3;Create;1;True;Temperature;FLOAT;1000;In;;Inherit;False;Blackbody;True;False;0;;False;1;0;FLOAT;1000;False;1;FLOAT3;0\nNode;AmplifyShaderEditor.FunctionOutput;0;0,0;Inherit;False;True;-1;Output;0;False;1;0;FLOAT3;0,0,0;False;1;FLOAT3;0\nWireConnection;1;0;2;0\nWireConnection;0;0;1;0\nASEEND*/\n//CHKSM=E4269CD877BB4D0298A44862B2C7B9C49B86FB65"
  22. m_functionName:
  23. m_description: 'Converts a black body radiation temperature (in Kelvin) to a linear
  24. RGB value representing visible spectrum radiation.
  25. https://en.wikipedia.org/wiki/Black-body_radiation'
  26. m_additionalIncludes:
  27. m_additionalIncludes: []
  28. m_outsideIncludes: []
  29. m_additionalPragmas:
  30. m_additionalPragmas: []
  31. m_outsidePragmas: []
  32. m_additionalDirectives:
  33. m_validData: 0
  34. m_isDirty: 0
  35. m_moduleName: ' Additional Directives'
  36. m_independentModule: 1
  37. m_customEdited: 0
  38. m_additionalDirectives: []
  39. m_shaderFunctionDirectives: []
  40. m_nativeDirectives: []
  41. m_nativeDirectivesIndex: -1
  42. m_nativeDirectivesFoldout: 0
  43. m_directivesSaveItems: []
  44. m_nodeCategory: 3
  45. m_headerStyle: 1
  46. m_headerColor: {r: 1, g: 0.4, b: 0, a: 1}
  47. m_customNodeCategory:
  48. m_previewPosition: 0
  49. m_hidden: 0
  50. m_url: