Help with understanding Texture mapping

Can someone point me towards the part of the cycles source code where I can understand Texture mapping implementation and any resources if possible?
It would be of great help to get started. Thanks!

Hope this helps!

  • blender/intern/cycles/kernel/shaders/node_texture_coordinate.osl
  • blender/intern/cycles/kernel/shaders/node_image_texture.osl
    (Edit: Make sure to modify the SVM code as well if you make changes, this is where GPU/CPU shaders are executed, the CPU OSL implimentation is just more easy to read)
1 Like