|
@@ -242,7 +242,10 @@ The uniforms will be populated at runtime with the value you sent.
|
|
|
|
|
|
Color Keying is useful in games involving many players. It consists of adding some player-specific color on models textures. The easiest way of doing this is to use a keyMap which will contain the amount of color to add in its alpha channel.
|
|
Color Keying is useful in games involving many players. It consists of adding some player-specific color on models textures. The easiest way of doing this is to use a keyMap which will contain the amount of color to add in its alpha channel.
|
|
|
|
|
|
-Here I will use this color map: link:http://wstaw.org/m/2011/10/24/plasma-desktopxB2787.jpg[http://wstaw.org/m/2011/10/24/plasma-desktopxB2787.jpg] to blend color on this texture: link:http://wstaw.org/m/2011/10/24/plasma-desktopbq2787.jpg[http://wstaw.org/m/2011/10/24/plasma-desktopbq2787.jpg]
|
|
|
|
|
|
+Here I will use this color map: +
|
|
|
|
+link:http://wstaw.org/m/2011/10/24/plasma-desktopxB2787.jpg[http://wstaw.org/m/2011/10/24/plasma-desktopxB2787.jpg] +
|
|
|
|
+to blend color on this texture: +
|
|
|
|
+link:http://wstaw.org/m/2011/10/24/plasma-desktopbq2787.jpg[http://wstaw.org/m/2011/10/24/plasma-desktopbq2787.jpg]
|
|
|
|
|
|
We need to pass 2 new parameters to the Lighting.j3md definition, MaterialParameters section:
|
|
We need to pass 2 new parameters to the Lighting.j3md definition, MaterialParameters section:
|
|
|
|
|