Hi guys,
Can I take the position (xyz) being shaded and use it to look up a colour in a 2D texture or cube map ? Instead of calculating a colour using a procedural texture function I'd like to use precreated textures.
I know I can implement Perlin noise in a pixel shader but that's not what I'm after.
I've read about cube maps but haven't seen anything about direct texturing, only about sky boxes and reflections. I don't know if using a 2D texture for this is even possible, let alone how to do it.
Some help would be great. Thanks.