|
Post by sbdjazz on Feb 26, 2017 19:22:22 GMT
How do I change the color of skinmesh using scripts or a shader?
|
|
|
Post by Power Supersport on Feb 26, 2017 20:14:27 GMT
First, you MUST use the System shaders, made by shadmar... All "user_" shaders are supported...
The magic script command is iShaderFloat3Set (OBJ_X, "cColor", red, green, blue)... Red, green, blue are the color floats, usually from 0.0 - 1.0... OBJ_X is the skinmesh...
And that's it...
|
|
|
Post by zerochaos98 on Jul 2, 2017 11:00:51 GMT
Soo im guessibg the only way this works is through thise custom shaders huh? Im just curious because i tried it on one of my models without them and it wouldnt change the dang color...
|
|
|
Post by cypermethrin on Jul 2, 2017 17:40:49 GMT
Also if I remember right, your textures need to be white (or very light) in the areas you want colour to change, it won't change say a red to a green but it will change a white to anything - although its been a long time so I could be wrong
|
|
Deleted
Deleted Member
Posts: 0
|
Post by Deleted on Jul 2, 2017 19:02:16 GMT
You probably couldnt use script but, shaders would work
|
|
|
Post by zerochaos98 on Aug 28, 2017 21:19:38 GMT
Thanks this script works as it should when the correct shaders are used
|
|