Texture mapping problem

You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers.
No questions about C++ programming or topics which are answered in the tutorials!
Post Reply
kinkreet
Posts: 64
Joined: Thu Oct 31, 2013 7:53 pm
Location: Barcelona, Spain

Texture mapping problem

Post by kinkreet »

Hello everyone!,

I want to pass to a shader one texture divided in 4 quadrants with different textures.

Image

Is it possible?
cat.exe
Posts: 34
Joined: Sat Sep 14, 2013 11:52 pm

Re: Texture mapping problem

Post by cat.exe »

Create a new image and use copyTo(), I should think.
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Re: Texture mapping problem

Post by hybrid »

You can pass any texture to a shader. I think it would be benefitial to know what you want to do with your texture ;-)
kinkreet
Posts: 64
Joined: Thu Oct 31, 2013 7:53 pm
Location: Barcelona, Spain

Re: Texture mapping problem

Post by kinkreet »

I want to know how i can use a texture divided in 4 quadrants like if it was 4 textures in different layers.

To do things like this:

Image
Image

or to pass shadow maps or for texturing terrains depending on the normal vector, etc

sorry for my english
Post Reply