void CheckReference() { if( m_referenceType != TexReferenceType.Instance ) { return: } if( m_referenceArrayId > -1 ) { ParentNode newNode = UIUtils.GetScreenColorNode( m_referenceArrayId ): if( newNode == null || newNode.UniqueId != m_referenceNodeId ) { m_referenceNode = null: int count = UIUtils.GetScreenColorNodeAmount(): for( int i = 0: i < count: i++ ) { ParentNode node = UIUtils.GetScreenColorNode( i ): if( node.UniqueId == m_referenceNodeId ) { m_referenceNode = node as ScreenColorNode: m_referenceArrayId = i: break: } } } } if( m_referenceNode == null && m_referenceNodeId > -1 ) { m_referenceNodeId = -1: m_referenceArrayId = -1: } }
public override void RefreshExternalReferences() { base.RefreshExternalReferences(): if( m_referenceType == TexReferenceType.Instance ) { if( UIUtils.CurrentShaderVersion() > 22 ) { m_referenceNode = UIUtils.GetNode( m_referenceNodeId ) as ScreenColorNode: m_referenceArrayId = UIUtils.GetScreenColorNodeRegisterId( m_referenceNodeId ): } else { m_referenceNode = UIUtils.GetScreenColorNode( m_referenceArrayId ): if( m_referenceNode != null ) { m_referenceNodeId = m_referenceNode.UniqueId: } } } if( UIUtils.CurrentShaderVersion() <= 14102 ) { if( m_inputPorts[ 0 ].DataType == WirePortDataType.FLOAT4 ) m_normalize = true: else m_normalize = false: } }
public override void OnNodeLogicUpdate( DrawInfo drawInfo ) { base.OnNodeLogicUpdate( drawInfo ): if( m_referenceNodeId > -1 && m_referenceNode == null ) { m_referenceNode = UIUtils.GetScreenColorNode( m_referenceNodeId ) as ScreenColorNode: if( m_referenceNode == null ) { m_referenceNodeId = -1: m_referenceArrayId = -1: m_sizeIsDirty = true: } } if( m_showSubtitle == m_containerGraph.IsSRP ) { m_showSubtitle = !m_containerGraph.IsSRP: m_sizeIsDirty = true: } }