Q.
I’m making a scene where characters are talking during a game.
In order to make the character who is talking stand out, I want to make the other characters a little darker and gray.
A.
You can write a script to apply a slightly darker color to your character.
Using the “SetMeshColorAll” function in apPortrait will apply a color to all meshes of your character at once.
Since AnyPortrait calculates the color using a 2X Multiply operation, you can darken your character by entering a value (0.2, 0.2, 0.2, 1.0) which is slightly smaller than the default value (0.5, 0.5, 0.5, 1.0).
To restore the colors to their original state, use the “ResetMeshMaterialToBatchAll” function.
For script functions, please refer to the following manual.
https://rainyrizzle.github.io/en/Script/SC_Mesh.html
If you want to create more colorful color effects, you can also write a custom shader.
Check out the following manuals:
– Custom Shader: https://rainyrizzle.github.io/en/Script/SC_CustomShader.html
– Material Library: https://rainyrizzle.github.io/en/AdvancedManual/AD_MaterialLibrary.html
-
This topic was modified 1 week ago by
Archive Account.