The following lines are from ColorFilter.prototype._fragmentSrc in rmmz_core.js, around line 4500. I always see code like this when reading the built-in scirpts:
I don't understand the purpose of this. If I were to rewrite this shader, I would probably replace these 4 lines above with something like:
Does the WebGL RPG Maker MZ is using not support swizzling?
Code:
" float r3 = blendColor.r / 255.0;" +
" float g3 = blendColor.g / 255.0;" +
" float b3 = blendColor.b / 255.0;" +
" float i3 = blendColor.a / 255.0;" +
I don't understand the purpose of this. If I were to rewrite this shader, I would probably replace these 4 lines above with something like:
Code:
" vec4 rgba3 = blendColor * 0.00392156;" +
Does the WebGL RPG Maker MZ is using not support swizzling?