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!
kinkreet
Posts: 64 Joined: Thu Oct 31, 2013 7:53 pm
Location: Barcelona, Spain
Post
by kinkreet » Thu May 29, 2014 10:36 pm
Hello everyone!,
I want to pass to a shader one texture divided in 4 quadrants with different textures.
Is it possible?
cat.exe
Posts: 34 Joined: Sat Sep 14, 2013 11:52 pm
Post
by cat.exe » Mon Jun 02, 2014 2:25 am
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:
Post
by hybrid » Mon Jun 02, 2014 7:28 am
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
Post
by kinkreet » Wed Jun 04, 2014 5:12 pm
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:
or to pass shadow maps or for texturing terrains depending on the normal vector, etc
sorry for my english