Where is(are) the function(s) that, in the image node, transforms a point in UV space (vector that goes into the node) to a color (color of the pixel of the texture)? I can't seem to find such. Thank you very much in advance.

  • 1
    $\begingroup$ do you mean the texture coordinate Input --> texture coordinate? and mapping node Vector --> mapping? $\endgroup$ – gladys Aug 7 '15 at 14:11
  • $\begingroup$ No, I mean the Image Texture node. ("ShaderNodeTexImage", if I remember right.) $\endgroup$ – Mörkö Aug 7 '15 at 14:17
  • $\begingroup$ Texture>Image Texture $\endgroup$ – Igor Tatarnikov Aug 7 '15 at 14:21
  • $\begingroup$ UV coordinate is a X/Y coordinate for an image. There is no transformation. $\endgroup$ – beiller Aug 7 '15 at 14:24
  • $\begingroup$ Sorry if I'm unclear. Let me rephrase: I am talking about the code that takes in the vector / UV point / whatever one wants to call it and returns the color of the pixel at that place. $\endgroup$ – Mörkö Aug 7 '15 at 14:27

What you are looking for is in


You want to look into:


You will find there links to appropriate .osl or .h files.

In those you will find the code and implementation.


Texture > Image Texture, then connect it to the Diffuse Shader

enter image description here


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.