OH SHIT ROOT FRAME TINT/COLOR OFFSET!
This commit is contained in:
1 parent
4e1226739a
commit
4cf5304c79
3 files changed
+45
-10
No files matched your search
@@ -555,8 +555,9 @@ namespace anm2ed::imgui
|
||||
|
||||
auto uvMin = frame.crop / texSize;
|
||||
auto uvMax = (frame.crop + frame.size) / texSize;
|
||||
vec3 frameColorOffset = frame.colorOffset + colorOffset + sampleColor;
|
||||
vec4 frameTint = frame.tint;
|
||||
auto rootFrame = animation->rootAnimation.frame_generate(sampleTime, anm2::ROOT);
|
||||
vec3 frameColorOffset = frame.colorOffset + rootFrame.colorOffset + colorOffset + sampleColor;
|
||||
vec4 frameTint = frame.tint * rootFrame.tint;
|
||||
frameTint.a = std::max(0.0f, frameTint.a - (alphaOffset + sampleAlpha));
|
||||
|
||||
auto vertices = math::uv_vertices_get(uvMin, uvMax);
|
||||
|
||||
Reference in new issue
Block a user