Init
This commit is contained in:
52
Assets/AmplifyShaderEditor/Plugins/EditorResources/ShaderFunctions/Blackbody.asset
generated
Normal file
52
Assets/AmplifyShaderEditor/Plugins/EditorResources/ShaderFunctions/Blackbody.asset
generated
Normal file
@ -0,0 +1,52 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!114 &11400000
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 0}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 78b2425a2284af743826c689403a4924, type: 3}
|
||||
m_Name: Blackbody
|
||||
m_EditorClassIdentifier:
|
||||
m_functionInfo: "// Made with Amplify Shader Editor v1.9.1\n// Available at the
|
||||
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
|
||||
color = float3(255.0, 255.0, 255.0)@$color.x = 56100000. * pow(Temperature,(-3.0
|
||||
/ 2.0)) + 148.0@$color.y = 100.04 * log(Temperature) - 623.6@$if (Temperature
|
||||
> 6500.0) color.y = 35200000.0 * pow(Temperature,(-3.0 / 2.0)) + 184.0@$color.z
|
||||
= 194.18 * log(Temperature) - 1448.6@$color = clamp(color, 0.0, 255.0)/255.0@$if
|
||||
(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"
|
||||
m_functionName:
|
||||
m_description: 'Converts a black body radiation temperature (in Kelvin) to a linear
|
||||
RGB value representing visible spectrum radiation.
|
||||
|
||||
|
||||
https://en.wikipedia.org/wiki/Black-body_radiation'
|
||||
m_additionalIncludes:
|
||||
m_additionalIncludes: []
|
||||
m_outsideIncludes: []
|
||||
m_additionalPragmas:
|
||||
m_additionalPragmas: []
|
||||
m_outsidePragmas: []
|
||||
m_additionalDirectives:
|
||||
m_validData: 0
|
||||
m_isDirty: 0
|
||||
m_moduleName: ' Additional Directives'
|
||||
m_independentModule: 1
|
||||
m_customEdited: 0
|
||||
m_additionalDirectives: []
|
||||
m_shaderFunctionDirectives: []
|
||||
m_nativeDirectives: []
|
||||
m_nativeDirectivesIndex: -1
|
||||
m_nativeDirectivesFoldout: 0
|
||||
m_directivesSaveItems: []
|
||||
m_nodeCategory: 3
|
||||
m_headerStyle: 1
|
||||
m_headerColor: {r: 1, g: 0.4, b: 0, a: 1}
|
||||
m_customNodeCategory:
|
||||
m_previewPosition: 0
|
||||
m_hidden: 0
|
||||
m_url:
|
Reference in New Issue
Block a user