// Amplify Shader Editor - Visual Shader Editing Tool // Copyright (c) Amplify Creations, Lda namespace AmplifyShaderEditor { [System.Serializable] [NodeAttributes( "World To Camera Matrix", "Matrix Transform", "Inverse of current camera to world matrix" )] public sealed class WorldToCameraMatrix : ConstantShaderVariable { protected override void CommonInit( int uniqueId ) { base.CommonInit( uniqueId ); ChangeOutputProperties( 0, "Out", WirePortDataType.FLOAT4x4 ); m_value = "unity_WorldToCamera"; m_drawPreview = false; } public override string GenerateShaderForOutput( int outputId, ref MasterNodeDataCollector dataCollector, bool ignoreLocalvar ) { GeneratorUtils.RegisterUnity2019MatrixDefines( ref dataCollector ); return base.GenerateShaderForOutput( outputId, ref dataCollector, ignoreLocalvar ); } } }