-
| 
         i am wanting to load an image to a shader so i gan read data it from it like texture(Source, vTexCoord).rgb; like i can with the desktop capture image. i know that you can go to imput file but i want to have a reference to both not just a file.  | 
  
Beta Was this translation helpful? Give feedback.
      
      
          Answered by
          
            mausimus
          
      
      
        Sep 17, 2025 
      
    
    Replies: 1 comment 1 reply
-
| 
         Same as in RetroArch, you need to declare it as a texture in .slangp - check out the imgborder shader for example.  | 
  
Beta Was this translation helpful? Give feedback.
                  
                    1 reply
                  
                
            
      Answer selected by
        rsa17826
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Same as in RetroArch, you need to declare it as a texture in .slangp - check out the imgborder shader for example.
https://github.com/libretro/slang-shaders/blob/master/border/imgborder.slangp