def make_render_state(engine, vert, frag):
        """
        Make a render state for specific camera
        Args:
            engine: BaseEngine
            vert: vert shader file name in shaders
            frag: frag shader file name in shaders

        Returns: RenderState

        """
        vert = AssetLoader.file_path("../shaders", vert)
        frag = AssetLoader.file_path("../shaders", frag)
        terrain_shader = Shader.load(Shader.SL_GLSL, vert, frag)

        dummy_np = NodePath("Dummy")
        dummy_np.setShader(terrain_shader)
        return dummy_np.getState()

        Make a render state for specific camera
        Args:
            engine: BaseEngine
            vert: vert shader file name in shaders
            frag: frag shader file name in shaders

        Returns: RenderState

        
metadrive/engine/core/terrain.py