Skip to content

Commit

Permalink
Update some outdated comments
Browse files Browse the repository at this point in the history
  • Loading branch information
wixoaGit committed Dec 27, 2023
1 parent cb4e865 commit baf806f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions OpenDreamClient/Rendering/DreamViewOverlay.cs
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ public DreamViewOverlay(TransformSystem transformSystem, EntityLookupSystem look
_blockColorInstance = _protoManager.Index<ShaderPrototype>("blockcolor").InstanceUnique();
_colorInstance = _protoManager.Index<ShaderPrototype>("color").InstanceUnique();
_blendModeInstances = new(6) {
{BlendMode.Default, _protoManager.Index<ShaderPrototype>("blend_overlay").InstanceUnique()}, //BLEND_DEFAULT TODO: Not the same as BLEND_OVERLAY
{BlendMode.Default, _protoManager.Index<ShaderPrototype>("blend_overlay").InstanceUnique()}, //BLEND_DEFAULT (Same as BLEND_OVERLAY when there's no parent)
{BlendMode.Overlay, _protoManager.Index<ShaderPrototype>("blend_overlay").InstanceUnique()}, //BLEND_OVERLAY
{BlendMode.Add, _protoManager.Index<ShaderPrototype>("blend_add").InstanceUnique()}, //BLEND_ADD
{BlendMode.Subtract, _protoManager.Index<ShaderPrototype>("blend_subtract").InstanceUnique()}, //BLEND_SUBTRACT
Expand Down Expand Up @@ -391,7 +391,6 @@ private void ClearRenderTarget(IRenderTexture target, DrawingHandleWorld handle,
colorMatrix = iconMetaData.ColorMatrixToApply;

// We can use no shader if everything is default
// TODO: BlendMode.Default is not the same as BlendMode.Overlay
if (!iconMetaData.IsPlaneMaster && blendMode is BlendMode.Default or BlendMode.Overlay &&
colorMatrix.Equals(ColorMatrix.Identity))
return null;
Expand Down

0 comments on commit baf806f

Please sign in to comment.