Search Unity

How to use a renderTextue as input on which we apply a shader ?

Discussion in 'ML-Agents' started by Julien_Desvergnes, Sep 23, 2020.

  1. Julien_Desvergnes

    Julien_Desvergnes

    Joined:
    Oct 30, 2019
    Posts:
    4
    Hello all,

    I'm trying to use a renderTexture as input of my learning agent but I want to apply a shader first on it before send it to the agent.
    Am I able to do that and how ?

    Thanks

    J.D
     
  2. ruoping_unity

    ruoping_unity

    Unity Technologies

    Joined:
    Jul 10, 2020
    Posts:
    134
    There doesn't seem to be anything preventing you from doing that. Once you set up the shader, your agent's sensor should be able to use it.

    For how to apply Shader please refer to its package documentations.