

def load_grain(self):
    ' Loads the precomputed film grain '
    grain_tex = RPLoader.load_texture('/$$rp/data/film_grain/grain.txo')
    grain_tex.set_minfilter(SamplerState.FT_linear)
    grain_tex.set_magfilter(SamplerState.FT_linear)
    grain_tex.set_wrap_u(SamplerState.WM_repeat)
    grain_tex.set_wrap_v(SamplerState.WM_repeat)
    self.set_anisotropic_degree(0)
    self.stage.set_shader_input('PrecomputedGrain', grain_tex)

dataset/ETHPy150Open tobspr/RenderPipeline/rpplugins/color_correction/plugin.py Plugin.load_grain/VarMisuse@57/125 `grain_tex`->`self`