-
Notifications
You must be signed in to change notification settings - Fork 69
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
(ATTR|GLOBAL)_shadow_blend doesn't use material.xplane.blendRatio #426
Comments
This would also be a good moment to make a blend mode unit test. |
Looking into this, |
Looking further, this decision would also impact the converter (see #455) |
I think we should reuse blendRatio instead of making a new property (we are extremely
Another change, capitalize C and R in Alpha Cutoff Ratio. The name is good but we'll need to change the description based on Shadow Blend vs Alpha Cutoff. |
I agree that they are so close together in functionality and meaning, and the blend modes being mutually exclusive of course, so reusing the prop makes sense indeed. However, I could find a way to change the text that is shown in the textbox (that's just a parameter when you add it to the panel), but I couldn't figure out how to dynamically change the description (shown in the tooltip). |
I could have sworn you could have changed the tooltip. I guess not! Strange. I care more about not changing the data model than not changing the UI. the tool tip can be something general about how a Blend Ratio controls the output and we can have different labels beneath with the description we want. Will decide later, but I'm welcome to suggestions |
And, very small reminder to myself in the future, there's a TODO comment in xplane_249_material_converter that is set to be removed after this is finished. |
Correctness bug: _shadow_blend doesn't let the user set .blendRatio for shadow blend. It simply exports
ATTR_shadow_blend
with nothing after it.
X-Plane has been using the default value
.5
this whole time and I guess nobody noticed or cared enough to file a bug.The text was updated successfully, but these errors were encountered: