Hi,
I used simple shader for mixing textures, but now I lost all lights. Shader overrides lighting. I just need to use lights like without shader, is there any way? Or do I have to program custom light in shader?
Thanks
- Viewing Profile: Topics: Civilwar
Awesome job so far everyone! Please give us your feedback on how our article efforts are going. We still need more finished articles for our May contest theme: Remake the Classics
Community Stats
- Group Members
- Active Posts 30
- Profile Views 1,058
- Member Title Member
- Age Age Unknown
- Birthday Birthday Unknown
-
Gender
Not Telling
100
Neutral
User Tools
Contacts
Civilwar hasn't added any contacts yet.
Topics I've Started
GLSL and lighting
11 November 2011 - 08:31 AM
2 GLSL questions
10 November 2011 - 08:37 AM
Hi again.
- I know how to combine two textures using mix function, but what to do, if I need to combine three or more textures?
- I am using VBOs to display mesh. On vertex arrays, textures should be activated with glClientActiveTexture, but it seems that this doesn't "transfer" texture to shader, it don't work. It only works if I use glActiveTexture, but then I can't have more then one set of texture coordinates. I need to have two sets, one for "visible" textures and one for the "mask" texture. Is it possible to pass two texture coordinates to shader? If so, how?
GLSL - merging two textures
03 November 2011 - 02:54 PM
Hi, this will be a little longer question.
What I have:
Two grass textures

And one big alpha-white texture like this:

I need to map both textures on my mesh and it depends on alpha texture how much it will show first or second texture. I mean, if there is 70% alpha in one point, it will show 70% first grass texture and 30% second one. So the result should look like

I think it shouldn't be so dificult, but I have no expirience with shaders, so I don't even know where to start.
I'll be glad for every help.
What I have:
Two grass textures

And one big alpha-white texture like this:

I need to map both textures on my mesh and it depends on alpha texture how much it will show first or second texture. I mean, if there is 70% alpha in one point, it will show 70% first grass texture and 30% second one. So the result should look like

I think it shouldn't be so dificult, but I have no expirience with shaders, so I don't even know where to start.
I'll be glad for every help.
Winsock - Sending structs of different size
29 October 2011 - 07:42 AM
Hi,
I am using WinSock library for sending data over network, and I have a problem.
I know how to send data in one struct and receive it on the other side, because there is constant size of structure. But what if I have more structures, each one with different size?
Now I have one struct that contains locations of players and other with in-game messages. When I am about to receive struct, I don't know which one is being sent.
Is there a "trick" how to do that?
Thanks for help.
I am using WinSock library for sending data over network, and I have a problem.
I know how to send data in one struct and receive it on the other side, because there is constant size of structure. But what if I have more structures, each one with different size?
Now I have one struct that contains locations of players and other with in-game messages. When I am about to receive struct, I don't know which one is being sent.
Is there a "trick" how to do that?
Thanks for help.
Name for MMORPG
26 September 2011 - 08:52 AM
Hi,
I need to find a name for my simple MMORPG. What is it like?
Thanks
I need to find a name for my simple MMORPG. What is it like?
- Two teams (about 20 people each) trying to defeat the other camp.
- Everyone can choose one "job" - lumberjack, farmer, builder etc. and one "main weapon" - sword, bow or spell
Thanks
- Home
- » Viewing Profile: Topics: Civilwar

Find content