def _setup_effect(self):
        """
        Setup simple PBR effect
        Returns: None

        """
        cam = self.get_cam().node()
        cam.setTagStateKey(CameraTagStateKey.RGB)
        from metadrive.engine.core.terrain import Terrain
        cam.setTagState(
            Semantics.TERRAIN.label, Terrain.make_render_state(self.engine, "terrain.vert.glsl", "terrain.frag.glsl")
        )

        self.scene_tex = None
        self.manager = FilterManager(self.buffer, self.cam)
        fbprops = p3d.FrameBufferProperties()
        fbprops.float_color = True
        fbprops.set_rgba_bits(16, 16, 16, 16)
        fbprops.set_depth_bits(24)
        if is_mac():
            fbprops.set_multisamples(4)
        else:
            fbprops.set_multisamples(16)
        self.scene_tex = p3d.Texture()
        self.scene_tex.set_format(p3d.Texture.F_rgba16)
        self.scene_tex.set_component_type(p3d.Texture.T_float)
        self.tonemap_quad = self.manager.render_scene_into(colortex=self.scene_tex, fbprops=fbprops)
        #
        defines = {}
        if is_mac():
            defines["USE_330"] = True
        #
        post_vert_str = _load_shader_str('post.vert', defines)
        post_frag_str = _load_shader_str('tonemap.frag', defines)
        tonemap_shader = p3d.Shader.make(
            p3d.Shader.SL_GLSL,
            vertex=post_vert_str,
            fragment=post_frag_str,
        )
        self.tonemap_quad.set_shader(tonemap_shader)
        self.tonemap_quad.set_shader_input('tex', self.scene_tex)
        self.tonemap_quad.set_shader_input('exposure', 1.0)

        Setup simple PBR effect
        Returns: None

        
metadrive/component/sensors/rgb_camera.py