Alpha color offset
Color Offset gains an alpha channel (Frame Properties, Change All, property copy, interpolation and root folding), drawn by adding it to the texel's alpha. Saved as AlphaOffset in the editor's copy only and counted by the Isaac warning. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
0adb0f89bc
commit
4375844c84
17 files changed
+39
-51
No files matched your search
@@ -387,6 +387,7 @@ namespace anm2ed::imgui
|
||||
{issues.skewFrames, FORMAT_ISAAC_SKEW_FRAMES},
|
||||
{issues.shaderFrames, FORMAT_ISAAC_SHADER_FRAMES},
|
||||
{issues.depthFrames, FORMAT_ISAAC_DEPTH_FRAMES},
|
||||
{issues.alphaOffsetFrames, FORMAT_ISAAC_ALPHA_OFFSET_FRAMES},
|
||||
{issues.blurFrames, FORMAT_ISAAC_BLUR_FRAMES},
|
||||
{issues.triggerSounds, FORMAT_ISAAC_TRIGGER_SOUNDS},
|
||||
{issues.animationLayers, FORMAT_ISAAC_ANIMATION_LAYERS}})
|
||||
|
||||
@@ -725,7 +725,7 @@ namespace anm2ed::imgui
|
||||
tint.a = std::max(0.0f, tint.a - (alphaOffset + sampleAlpha));
|
||||
auto customShader = sampleDocument.shader_get(frame.shaderId);
|
||||
layer_render(customShader ? *customShader : shaderTexture, resource::texture::id_get(*layerTexture),
|
||||
textureSize, baseTransform, draw, tint, frame.colorOffset + sampleColor);
|
||||
textureSize, baseTransform, draw, tint, frame.colorOffset + vec4(sampleColor, 0.0f));
|
||||
|
||||
auto color = isOnion ? onionColor
|
||||
: isActiveDocument && is_layer_selected(draw.id) ? SELECTED_LAYER_BORDER_COLOR
|
||||
|
||||
@@ -270,8 +270,8 @@ namespace anm2ed::imgui
|
||||
{ frame.tint = tint; });
|
||||
ImGui::SetItemTooltip("%s", localize.get(TOOLTIP_TINT));
|
||||
|
||||
auto colorOffsetEdit = color_edit3_persistent(localize.get(BASIC_COLOR_OFFSET),
|
||||
frame ? &useFrame.colorOffset : &dummy_value<vec3>());
|
||||
auto colorOffsetEdit = color_edit4_persistent(localize.get(BASIC_COLOR_OFFSET),
|
||||
frame ? &useFrame.colorOffset : &dummy_value<vec4>());
|
||||
frame_edit(colorOffsetEdit, EDIT_FRAME_COLOR_OFFSET,
|
||||
[colorOffset = useFrame.colorOffset](Document&, model::Frame& frame, model::Track*,
|
||||
const Reference&) { frame.colorOffset = colorOffset; });
|
||||
@@ -412,7 +412,6 @@ namespace anm2ed::imgui
|
||||
dummy_value<int>() = 0;
|
||||
dummy_value<bool>() = 0;
|
||||
dummy_value<vec2>() = vec2();
|
||||
dummy_value<vec3>() = vec3();
|
||||
dummy_value<vec4>() = vec4();
|
||||
}
|
||||
}
|
||||
@@ -178,7 +178,8 @@ namespace anm2ed::imgui::wizard
|
||||
value_ptr(settings.changeTint),
|
||||
false},
|
||||
{BASIC_COLOR_OFFSET,
|
||||
{&settings.changeIsColorOffsetR, &settings.changeIsColorOffsetG, &settings.changeIsColorOffsetB},
|
||||
{&settings.changeIsColorOffsetR, &settings.changeIsColorOffsetG, &settings.changeIsColorOffsetB,
|
||||
&settings.changeIsColorOffsetA},
|
||||
value_ptr(settings.changeColorOffset),
|
||||
false}};
|
||||
|
||||
|
||||
Reference in new issue
Block a user