Making Secondary Map Texture Animation

Hi All,

I can’t find the way to display the Secondary Normal Map offset changes the way I do it on Main Texture or Bump Maps.

This line in the update changes the value in the Inspector but nothing is shown in PlayMode

        m_offsetSecondary += _deltaTime * m_stepSecondary;
        m_offsetSecondary.x = Mathf.Repeat( m_offsetSecondary.x, 1 );
        m_offsetSecondary.y = Mathf.Repeat( m_offsetSecondary.y, 1 );

        m_material.SetTextureOffset( "_DetailNormalMap", m_offsetSecondary);

I can see the values changing during playtime in material inspector but the secondary normal map is not moving.

I’ve also tried EnableKeywork instruction in the Start() method.

The Keyword is the good one and it should be working fine… but it’s not.

Any idea ?

The _DetailNormalMap is not the secondary map.